public static ILog Get( string source )
        {
            LogEntryCreator creator;
            if ( GetCategory( source ) )
                creator = new CategoryLogEntryCreator( source );
            else
                creator = new DefaultLogEntryCreator( source );

            return new EnterpriseLogger( writer, creator );
        }
Exemple #2
0
        public static ILog Get(string source)
        {
            LogEntryCreator creator;

            if (GetCategory(source))
            {
                creator = new CategoryLogEntryCreator(source);
            }
            else
            {
                creator = new DefaultLogEntryCreator(source);
            }

            return(new EnterpriseLogger(writer, creator));
        }