コード例 #1
0
 /// <summary>
 /// Initializes the  Logging system using the specified appender.
 /// </summary>
 /// <param name="appender">The appender to use to log all logging events.</param>
 /// <remarks>
 /// <para>
 /// Initializes the  Logging system using the specified appender.
 /// </para>
 /// </remarks>
 static public void Configure(IAppender appender)
 {
     BasicConfigurator.Configure(LogManager.GetRepository(Assembly.GetCallingAssembly()), appender);
 }
コード例 #2
0
 /// <summary>
 /// Initializes the  Logging system with a default configuration.
 /// </summary>
 /// <remarks>
 /// <para>
 /// Initializes the  Logging logging system using a <see cref="ConsoleAppender"/>
 /// that will write to <c>Console.Out</c>. The log messages are
 /// formatted using the <see cref="PatternLayout"/> layout object
 /// with the <see cref="PatternLayout.DetailConversionPattern"/>
 /// layout style.
 /// </para>
 /// </remarks>
 static public void Configure()
 {
     BasicConfigurator.Configure(LogManager.GetRepository(Assembly.GetCallingAssembly()));
 }