コード例 #1
0
    public static ILog GetLogger(string repository, string name)
    {
        ILog log             = LogManager.GetLogger(repository, name);
        ILog decoratedLogger = new CountingLogger(log);

        return(decoratedLogger);
    }
コード例 #2
0
    public static ILog GetLogger(Assembly repositoryAssembly, Type type)
    {
        ILog log             = LogManager.GetLogger(repositoryAssembly, type);
        ILog decoratedLogger = new CountingLogger(log);

        return(decoratedLogger);
    }
コード例 #3
0
    public static ILog GetLogger(Type type)
    {
        ILog log             = LogManager.GetLogger(type);
        ILog decoratedLogger = new CountingLogger(log);

        return(decoratedLogger);
    }