Browse Source

Cleaned some compiler flags

tags/docs-0.9
RogueException 9 years ago
parent
commit
86addc2594
3 changed files with 18 additions and 18 deletions
  1. +6
    -6
      src/Discord.Net/Logging/ILogger.cs
  2. +6
    -6
      src/Discord.Net/Logging/LogManager.cs
  3. +6
    -6
      src/Discord.Net/Logging/Logger.cs

+ 6
- 6
src/Discord.Net/Logging/ILogger.cs View File

@@ -7,36 +7,36 @@ namespace Discord.Logging
LogSeverity Level { get; } LogSeverity Level { get; }


void Log(LogSeverity severity, string message, Exception exception = null); void Log(LogSeverity severity, string message, Exception exception = null);
#if !NET45
#if DOTNET5_4
void Log(LogSeverity severity, FormattableString message, Exception exception = null); void Log(LogSeverity severity, FormattableString message, Exception exception = null);
#endif #endif


void Error(string message, Exception exception = null); void Error(string message, Exception exception = null);
#if !NET45
#if DOTNET5_4
void Error(FormattableString message, Exception exception = null); void Error(FormattableString message, Exception exception = null);
#endif #endif
void Error(Exception exception); void Error(Exception exception);


void Warning(string message, Exception exception = null); void Warning(string message, Exception exception = null);
#if !NET45
#if DOTNET5_4
void Warning(FormattableString message, Exception exception = null); void Warning(FormattableString message, Exception exception = null);
#endif #endif
void Warning(Exception exception); void Warning(Exception exception);


void Info(string message, Exception exception = null); void Info(string message, Exception exception = null);
#if !NET45
#if DOTNET5_4
void Info(FormattableString message, Exception exception = null); void Info(FormattableString message, Exception exception = null);
#endif #endif
void Info(Exception exception); void Info(Exception exception);


void Verbose(string message, Exception exception = null); void Verbose(string message, Exception exception = null);
#if !NET45
#if DOTNET5_4
void Verbose(FormattableString message, Exception exception = null); void Verbose(FormattableString message, Exception exception = null);
#endif #endif
void Verbose(Exception exception); void Verbose(Exception exception);


void Debug(string message, Exception exception = null); void Debug(string message, Exception exception = null);
#if !NET45
#if DOTNET5_4
void Debug(FormattableString message, Exception exception = null); void Debug(FormattableString message, Exception exception = null);
#endif #endif
void Debug(Exception exception); void Debug(Exception exception);


+ 6
- 6
src/Discord.Net/Logging/LogManager.cs View File

@@ -16,7 +16,7 @@ namespace Discord.Logging
Level = client.Config.LogLevel; Level = client.Config.LogLevel;
} }


#if !NET45
#if DOTNET5_4
public void Log(LogSeverity severity, string source, FormattableString message, Exception exception = null) public void Log(LogSeverity severity, string source, FormattableString message, Exception exception = null)
{ {
if (severity <= Level) if (severity <= Level)
@@ -37,7 +37,7 @@ namespace Discord.Logging


public void Error(string source, string message, Exception ex = null) public void Error(string source, string message, Exception ex = null)
=> Log(LogSeverity.Error, source, message, ex); => Log(LogSeverity.Error, source, message, ex);
#if !NET45
#if DOTNET5_4
public void Error(string source, FormattableString message, Exception ex = null) public void Error(string source, FormattableString message, Exception ex = null)
=> Log(LogSeverity.Error, source, message, ex); => Log(LogSeverity.Error, source, message, ex);
#endif #endif
@@ -46,7 +46,7 @@ namespace Discord.Logging


public void Warning(string source, string message, Exception ex = null) public void Warning(string source, string message, Exception ex = null)
=> Log(LogSeverity.Warning, source, message, ex); => Log(LogSeverity.Warning, source, message, ex);
#if !NET45
#if DOTNET5_4
public void Warning(string source, FormattableString message, Exception ex = null) public void Warning(string source, FormattableString message, Exception ex = null)
=> Log(LogSeverity.Warning, source, message, ex); => Log(LogSeverity.Warning, source, message, ex);
#endif #endif
@@ -55,7 +55,7 @@ namespace Discord.Logging


public void Info(string source, string message, Exception ex = null) public void Info(string source, string message, Exception ex = null)
=> Log(LogSeverity.Info, source, message, ex); => Log(LogSeverity.Info, source, message, ex);
#if !NET45
#if DOTNET5_4
public void Info(string source, FormattableString message, Exception ex = null) public void Info(string source, FormattableString message, Exception ex = null)
=> Log(LogSeverity.Info, source, message, ex); => Log(LogSeverity.Info, source, message, ex);
#endif #endif
@@ -64,7 +64,7 @@ namespace Discord.Logging


public void Verbose(string source, string message, Exception ex = null) public void Verbose(string source, string message, Exception ex = null)
=> Log(LogSeverity.Verbose, source, message, ex); => Log(LogSeverity.Verbose, source, message, ex);
#if !NET45
#if DOTNET5_4
public void Verbose(string source, FormattableString message, Exception ex = null) public void Verbose(string source, FormattableString message, Exception ex = null)
=> Log(LogSeverity.Verbose, source, message, ex); => Log(LogSeverity.Verbose, source, message, ex);
#endif #endif
@@ -73,7 +73,7 @@ namespace Discord.Logging


public void Debug(string source, string message, Exception ex = null) public void Debug(string source, string message, Exception ex = null)
=> Log(LogSeverity.Debug, source, message, ex); => Log(LogSeverity.Debug, source, message, ex);
#if !NET45
#if DOTNET5_4
public void Debug(string source, FormattableString message, Exception ex = null) public void Debug(string source, FormattableString message, Exception ex = null)
=> Log(LogSeverity.Debug, source, message, ex); => Log(LogSeverity.Debug, source, message, ex);
#endif #endif


+ 6
- 6
src/Discord.Net/Logging/Logger.cs View File

@@ -17,14 +17,14 @@ namespace Discord.Logging


public void Log(LogSeverity severity, string message, Exception exception = null) public void Log(LogSeverity severity, string message, Exception exception = null)
=> _manager.Log(severity, Name, message, exception); => _manager.Log(severity, Name, message, exception);
#if !NET45
#if DOTNET5_4
public void Log(LogSeverity severity, FormattableString message, Exception exception = null) public void Log(LogSeverity severity, FormattableString message, Exception exception = null)
=> _manager.Log(severity, Name, message, exception); => _manager.Log(severity, Name, message, exception);
#endif #endif


public void Error(string message, Exception exception = null) public void Error(string message, Exception exception = null)
=> _manager.Error(Name, message, exception); => _manager.Error(Name, message, exception);
#if !NET45
#if DOTNET5_4
public void Error(FormattableString message, Exception exception = null) public void Error(FormattableString message, Exception exception = null)
=> _manager.Error(Name, message, exception); => _manager.Error(Name, message, exception);
#endif #endif
@@ -33,7 +33,7 @@ namespace Discord.Logging


public void Warning(string message, Exception exception = null) public void Warning(string message, Exception exception = null)
=> _manager.Warning(Name, message, exception); => _manager.Warning(Name, message, exception);
#if !NET45
#if DOTNET5_4
public void Warning(FormattableString message, Exception exception = null) public void Warning(FormattableString message, Exception exception = null)
=> _manager.Warning(Name, message, exception); => _manager.Warning(Name, message, exception);
#endif #endif
@@ -42,7 +42,7 @@ namespace Discord.Logging


public void Info(string message, Exception exception = null) public void Info(string message, Exception exception = null)
=> _manager.Info(Name, message, exception); => _manager.Info(Name, message, exception);
#if !NET45
#if DOTNET5_4
public void Info(FormattableString message, Exception exception = null) public void Info(FormattableString message, Exception exception = null)
=> _manager.Info(Name, message, exception); => _manager.Info(Name, message, exception);
#endif #endif
@@ -51,7 +51,7 @@ namespace Discord.Logging


public void Verbose(string message, Exception exception = null) public void Verbose(string message, Exception exception = null)
=> _manager.Verbose(Name, message, exception); => _manager.Verbose(Name, message, exception);
#if !NET45
#if DOTNET5_4
public void Verbose(FormattableString message, Exception exception = null) public void Verbose(FormattableString message, Exception exception = null)
=> _manager.Verbose(Name, message, exception); => _manager.Verbose(Name, message, exception);
#endif #endif
@@ -60,7 +60,7 @@ namespace Discord.Logging


public void Debug(string message, Exception exception = null) public void Debug(string message, Exception exception = null)
=> _manager.Debug(Name, message, exception); => _manager.Debug(Name, message, exception);
#if !NET45
#if DOTNET5_4
public void Debug(FormattableString message, Exception exception = null) public void Debug(FormattableString message, Exception exception = null)
=> _manager.Debug(Name, message, exception); => _manager.Debug(Name, message, exception);
#endif #endif


Loading…
Cancel
Save