GetLogger() 공개 메소드

public GetLogger ( ) : ILog
리턴 ILog
예제 #1
0
        private static int Main(string[] args)
        {
            var commandArgs = ParseArguments(args) ?? new ScriptCsArgs { Repl = true };

            var compositionRoot = new CompositionRoot(commandArgs);
            compositionRoot.Initialize();

            var logger = compositionRoot.GetLogger();
            logger.Debug("Creating ScriptServiceRoot");

            var scriptServiceRoot = compositionRoot.GetServiceRoot();

            var commandFactory = new CommandFactory(scriptServiceRoot);
            var command = commandFactory.CreateCommand(commandArgs);
            var result = command.Execute();

            return result == CommandResult.Success ? 0 : -1;
        }
예제 #2
0
파일: Program.cs 프로젝트: romanfq/scriptcs
        private static int Main(string[] args)
        {
            var commandArgs = ParseArguments(args) ?? new ScriptCsArgs {
                Repl = true
            };

            var compositionRoot = new CompositionRoot(commandArgs);

            compositionRoot.Initialize();

            var logger = compositionRoot.GetLogger();

            logger.Debug("Creating ScriptServiceRoot");

            var scriptServiceRoot = compositionRoot.GetServiceRoot();

            var commandFactory = new CommandFactory(scriptServiceRoot);
            var command        = commandFactory.CreateCommand(commandArgs);
            var result         = command.Execute();

            return(result == CommandResult.Success ? 0 : -1);
        }