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