Logging and tracing configuration for libgit2 and LibGit2Sharp.
コード例 #1
0
        internal static void Write(LogLevel level, string message, params object[] args)
        {
            LogConfiguration configuration = GlobalSettings.LogConfiguration;

            if (!IsEnabled(configuration, level))
            {
                return;
            }

            configuration.Handler(level, string.Format(message, args));
        }
コード例 #2
0
ファイル: Log.cs プロジェクト: nulltoken/libgit2sharp
 private static bool IsEnabled(LogConfiguration configuration, LogLevel level)
 {
     return (configuration.Level != LogLevel.None && configuration.Level >= level);
 }
コード例 #3
0
 private static bool IsEnabled(LogConfiguration configuration, LogLevel level)
 {
     return(configuration.Level != LogLevel.None && configuration.Level >= level);
 }