예제 #1
0
 /// <summary>
 /// Shorthand for <see cref="LogManager.GetLogger(string)"/>.
 /// </summary>
 /// <remarks>
 /// Get the logger for the fully qualified name of the type specified.
 /// </remarks>
 /// <param name="assembly">the assembly to use to lookup the domain</param>
 /// <param name="type">The full name of <paramref name="type"/> will
 /// be used as the name of the logger to retrieve.</param>
 /// <returns>the logger with the name specified</returns>
 public static IExtLog GetLogger(Assembly assembly, Type type)
 {
     return(WrapLogger(LoggerManager.GetLogger(assembly, type)));
 }
예제 #2
0
 /// <summary>
 /// Retrieve or create a named logger.
 /// </summary>
 /// <remarks>
 /// <para>Retrieve a logger named as the <paramref name="name"/>
 /// parameter. If the named logger already exists, then the
 /// existing instance will be returned. Otherwise, a new instance is
 /// created.</para>
 ///
 /// <para>By default, loggers do not have a set level but inherit
 /// it from the hierarchy. This is one of the central features of
 /// log4net.</para>
 /// </remarks>
 /// <param name="assembly">the assembly to use to lookup the domain</param>
 /// <param name="name">The name of the logger to retrieve.</param>
 /// <returns>the logger with the name specified</returns>
 public static IExtLog GetLogger(Assembly assembly, string name)
 {
     return(WrapLogger(LoggerManager.GetLogger(assembly, name)));
 }
예제 #3
0
 /// <summary>
 /// Shorthand for <see cref="LogManager.GetLogger(string)"/>.
 /// </summary>
 /// <remarks>
 /// Get the logger for the fully qualified name of the type specified.
 /// </remarks>
 /// <param name="domain">the domain to lookup in</param>
 /// <param name="type">The full name of <paramref name="type"/> will
 /// be used as the name of the logger to retrieve.</param>
 /// <returns>the logger with the name specified</returns>
 public static IExtLog GetLogger(string domain, Type type)
 {
     return(WrapLogger(LoggerManager.GetLogger(domain, type)));
 }
예제 #4
0
 /// <summary>
 /// Retrieve or create a named logger.
 /// </summary>
 /// <remarks>
 /// <para>Retrieve a logger named as the <paramref name="name"/>
 /// parameter. If the named logger already exists, then the
 /// existing instance will be returned. Otherwise, a new instance is
 /// created.</para>
 ///
 /// <para>By default, loggers do not have a set level but inherit
 /// it from the hierarchy. This is one of the central features of
 /// log4net.</para>
 /// </remarks>
 /// <param name="domain">the domain to lookup in</param>
 /// <param name="name">The name of the logger to retrieve.</param>
 /// <returns>the logger with the name specified</returns>
 public static IExtLog GetLogger(string domain, string name)
 {
     return(WrapLogger(LoggerManager.GetLogger(domain, name)));
 }