IsLoggingEnabled() public method

Returns if logging is currently enabled.
Logging is enabled if the number of EnableLogging calls is greater than or equal to DisableLogging calls.
public IsLoggingEnabled ( ) : bool
return bool
コード例 #1
0
 /// <summary>
 /// Checks if logging is currently enabled.
 /// </summary>
 /// <returns><see langword="true" /> if logging is currently enabled, <see langword="false"/>
 ///     otherwise.</returns>
 /// <remarks>Logging is enabled if the number of <see cref="EnableLogging"/> calls is greater
 ///     than or equal to <see cref="DisableLogging"/> calls.</remarks>
 public static bool IsLoggingEnabled()
 {
     return(factory.IsLoggingEnabled());
 }
コード例 #2
0
ファイル: LogManager.cs プロジェクト: NecroSharper/WCell
 /// <summary>
 /// Returns <see langword="true" /> if logging is currently enabled.
 /// </summary>
 /// <returns><see langword="true" /> if logging is currently enabled,
 /// <see langword="false"/> otherwise.</returns>
 /// <remarks>Logging is enabled if the number of <see cref="EnableLogging"/> calls is greater
 /// than or equal to <see cref="DisableLogging"/> calls.</remarks>
 public static bool IsLoggingEnabled()
 {
     return(_globalFactory.IsLoggingEnabled());
 }