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 );
        }
Ejemplo n.º 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));
        }