SystemExt/Log/LogManager.cs
/// <summary>
/// Writes a message to the loggers.
/// </summary>
/// <param name="level">
/// The level at which this message is to be logged.
/// </param>
/// <param name="component">
/// The component which is logging this message.
/// </param>
/// <param name="message">
/// A message to write to the loggers.
/// </param>
/// <param name="args">
/// A variable number of arguments to format <paramref name="message"/> with.
/// </param>
Writes a message to the loggers.
Writes a message to the loggers .
public void Write(LogLevel level, string component, string message, params object[] args)
        {
            var formattedMessage = string.Format(message, args);
            foreach (var loggerInfo in this.Loggers.Where(loggerInfo => loggerInfo.CanLog(level, component)))
            {
                loggerInfo.Logger.Write(component, formattedMessage);
            }
        }
public void Write ( LogLevel level , string component , string message , params object [ ] args ) { var formattedMessage = string . Format ( message , args ) ; foreach ( var loggerInfo in this . Loggers . Where ( loggerInfo => loggerInfo . CanLog ( level , component ) ) ) { loggerInfo . Logger . Write ( component , formattedMessage ) ; } }
Writes a message to the loggers.
Writes a message to the loggers .
// Format the message here to prevent duplication in the loggers. // Iterate over the loggers and write to the ones which can log at this level.
level
LogLevel
The level at which this message is to be logged.
The level at which this message is to be logged .
component
string
The component which is logging this message.
The component which is logging this message .
message
string
A message to write to the loggers.
A message to write to the loggers .
args
A variable number of arguments to format  with.
A variable number of arguments to format with .