コード例 #1
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Returns all the currently defined loggers in the specified assembly's domain.
 /// </summary>
 /// <param name="assembly">the assembly to use to lookup the domain</param>
 /// <remarks>
 /// The root logger is <b>not</b> included in the returned array.
 /// </remarks>
 /// <returns>All the defined loggers</returns>
 public static IWebLog[] GetCurrentLoggers(Assembly assembly)
 {
     return(WebLogManager.WrapLoggers(LoggerManager.GetCurrentLoggers(assembly)));
 }
コード例 #2
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Returns all the currently defined loggers in the default domain.
 /// </summary>
 /// <remarks>
 /// <para>The root logger is <b>not</b> included in the returned array.</para>
 /// </remarks>
 /// <returns>All the defined loggers</returns>
 public static IWebLog[] GetCurrentLoggers()
 {
     return(WebLogManager.GetCurrentLoggers(Assembly.GetCallingAssembly()));
 }
コード例 #3
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Returns all the currently defined loggers in the specified domain.
 /// </summary>
 /// <param name="domain">the domain to lookup in</param>
 /// <remarks>
 /// The root logger is <b>not</b> included in the returned array.
 /// </remarks>
 /// <returns>All the defined loggers</returns>
 public static IWebLog[] GetCurrentLoggers(string domain)
 {
     return(WebLogManager.WrapLoggers(LoggerManager.GetCurrentLoggers(domain)));
 }
コード例 #4
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Returns the named logger if it exists
 /// </summary>
 /// <remarks>
 /// <para>If the named logger exists (in the specified domain) then it
 /// returns a reference to the logger, otherwise it returns
 /// <c>null</c>.</para>
 /// </remarks>
 /// <param name="domain">the domain to lookup in</param>
 /// <param name="name">The fully qualified logger name to look for</param>
 /// <returns>The logger found, or null</returns>
 public static IWebLog Exists(string domain, string name)
 {
     return(WebLogManager.WrapLogger(LoggerManager.Exists(domain, name)));
 }
コード例 #5
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Returns the named logger if it exists
 /// </summary>
 /// <remarks>
 /// <para>If the named logger exists (in the specified assembly's domain) then it
 /// returns a reference to the logger, otherwise it returns
 /// <c>null</c>.</para>
 /// </remarks>
 /// <param name="assembly">the assembly to use to lookup the domain</param>
 /// <param name="name">The fully qualified logger name to look for</param>
 /// <returns>The logger found, or null</returns>
 public static IWebLog Exists(Assembly assembly, string name)
 {
     return(WebLogManager.WrapLogger(LoggerManager.Exists(assembly, name)));
 }
コード例 #6
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Shorthand for <see cref="M:log4net.LogManager.GetLogger(System.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 IWebLog GetLogger(Assembly assembly, Type type)
 {
     return(WebLogManager.WrapLogger(LoggerManager.GetLogger(assembly, type)));
 }
コード例 #7
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Returns the named logger if it exists
 /// </summary>
 /// <remarks>
 /// <para>If the named logger exists (in the default hierarchy) then it
 /// returns a reference to the logger, otherwise it returns
 /// <c>null</c>.</para>
 /// </remarks>
 /// <param name="name">The fully qualified logger name to look for</param>
 /// <returns>The logger found, or null</returns>
 public static IWebLog Exists(string name)
 {
     return(WebLogManager.Exists(Assembly.GetCallingAssembly(), name));
 }
コード例 #8
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Shorthand for <see cref="M:log4net.LogManager.GetLogger(System.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 IWebLog GetLogger(string domain, Type type)
 {
     return(WebLogManager.WrapLogger(LoggerManager.GetLogger(domain, type)));
 }
コード例 #9
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <summary>
 /// Shorthand for <see cref="M:log4net.LogManager.GetLogger(System.String)" />.
 /// </summary>
 /// <remarks>
 /// Get the logger for the fully qualified name of the type specified.
 /// </remarks>
 /// <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 IWebLog GetLogger(Type type)
 {
     return(WebLogManager.GetLogger(Assembly.GetCallingAssembly(), type.FullName));
 }
コード例 #10
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <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 IWebLog GetLogger(Assembly assembly, string name)
 {
     return(WebLogManager.WrapLogger(LoggerManager.GetLogger(assembly, name)));
 }
コード例 #11
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <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 IWebLog GetLogger(string domain, string name)
 {
     return(WebLogManager.WrapLogger(LoggerManager.GetLogger(domain, name)));
 }
コード例 #12
0
ファイル: WebLogManager.cs プロジェクト: yycx0328/Dot.Utility
 /// <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="name">The name of the logger to retrieve.</param>
 /// <returns>the logger with the name specified</returns>
 public static IWebLog GetLogger(string name)
 {
     return(WebLogManager.GetLogger(LogConfig.BaseRepository.Name, name));
 }