Log4Net.View/Log4NetEx/Log.cs
/// <summary>
/// Write the message to the appropriate log based on the relevant log level.
/// </summary>
/// <param name="level">The log level to be used.</param>
/// <param name="message">The message to be written.</param>
/// <exception cref="ArgumentNullException">Thrown if the message is empty.</exception>
Write the message to the appropriate log based on the relevant log level.
Write the message to the appropriate log based on the relevant log level .
public static void Write(LogLevel level, string message)
        {
            if (!string.IsNullOrEmpty(message))
            {
                if (level > LogLevel.Warning || level < LogLevel.Debug)
                    throw new ArgumentOutOfRangeException("level");
                _actions[level](message);
            }
        }
public static void Write ( LogLevel level , string message ) { if ( ! string . IsNullOrEmpty ( message ) ) { if ( level > LogLevel . Warning || level < LogLevel . Debug ) throw new ArgumentOutOfRangeException ( " " ) ; _actions [ level ] ( message ) ; } }
Write the message to the appropriate log based on the relevant log level.
Write the message to the appropriate log based on the relevant log level .
// Now call the appropriate log level message.
Thrown if the message is empty.
Thrown if the message is empty .
level
LogLevel
The log level to be used.
The log level to be used .
message
string
The message to be written.
The message to be written .