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 );
        }
예제 #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));
        }