///// <summary> ///// Initializes the log4net system with a default configuration. ///// </summary> ///// <remarks> ///// <para> ///// Initializes the log4net 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())); //} /// <summary> /// Initializes the log4net system using the specified appender. /// </summary> /// <param name="appender">The appender to use to log all logging events.</param> /// <remarks> /// <para> /// Initializes the log4net system using the specified appender. /// </para> /// </remarks> static public void Configure(IAppender appender) { BasicConfigurator.Configure(LogManager.GetRepository(Assembly.GetCallingAssembly()), appender); }
/// <summary> /// Initializes the log4net system with a default configuration. /// </summary> /// <remarks> /// <para> /// Initializes the log4net 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())); }
/// <summary> /// Initializes the log4net system with a default configuration. /// </summary> /// <remarks> /// <para> /// Initializes the log4net 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 ICollection Configure() { return(BasicConfigurator.Configure(LogManager.GetRepository(Assembly.GetCallingAssembly()))); }
/// <summary> /// Initializes the <see cref="ILoggerRepository"/> with a default configuration. /// </summary> /// <param name="repository">The repository to configure.</param> /// <remarks> /// <para> /// Initializes the specified repository 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.TTCC_CONVERSION_PATTERN"/> /// layout style. /// </para> /// </remarks> static public void Configure(ILoggerRepository repository) { BasicConfigurator.Configure(repository, new ConsoleAppender(new PatternLayout(PatternLayout.TTCC_CONVERSION_PATTERN))); }