src/Foundation/Common/Gimela.Common.Logging/FileLog/FileLogger.cs
/// <summary>
/// Writes the specified level logs.
/// </summary>
/// <param name="level">The level.</param>
/// <param name="message">The message.</param>
Writes the specified level logs.
Writes the specified level logs .
private void Write(LogLevel level, string message)
    {
      if (level.CompareTo(_appSettingLogLevel) < 0) return;
      if (_writer == null) return;
      if (string.IsNullOrWhiteSpace(message)) return;
      Write(new LogEntry(
          message,
          DateTime.Now.ToString(@"yyyy-MM-dd HH:mm:ss.ffffff", CultureInfo.InvariantCulture),
          Thread.CurrentThread.ManagedThreadId.ToString("000", CultureInfo.InvariantCulture),
          level));
    }
private void Write ( LogLevel level , string message ) { if ( level . CompareTo ( _appSettingLogLevel ) < 0 ) return ; if ( _writer == null ) return ; if ( string . IsNullOrWhiteSpace ( message ) ) return ; Write ( new LogEntry ( message , DateTime . Now . ToString ( @"yyyy-MM-dd HH:mm:ss.ffffff" , CultureInfo . InvariantCulture ) , Thread . CurrentThread . ManagedThreadId . ToString ( " " , CultureInfo . InvariantCulture ) , level ) ) ; }
Writes the specified level logs.
Writes the specified level logs .
level
LogLevel
None
message
string
None