Logging and tracing configuration for libgit2 and LibGit2Sharp.
Exemple #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));
        }
Exemple #2
0
 private static bool IsEnabled(LogConfiguration configuration, LogLevel level)
 {
     return (configuration.Level != LogLevel.None && configuration.Level >= level);
 }
Exemple #3
0
 private static bool IsEnabled(LogConfiguration configuration, LogLevel level)
 {
     return(configuration.Level != LogLevel.None && configuration.Level >= level);
 }