public static IO2Log writeToDebug(this IO2Log log, bool alsoShowInConsole)
 {
     log.LogRedirectionTarget = new Logger_DiagnosticsDebug {
         alsoShowInConsole = alsoShowInConsole
     };
     return(log);
 }
예제 #2
0
파일: DI.cs 프로젝트: pusp/o2platform
        static DI()
        {
            log = PublicDI.log; // _note that when the O2GuiWithDockPanel is create it will overide the PublicDI log with WinFormsUILog() object
            reflection = PublicDI.reflection;
            config = PublicDI.config;
            o2MessageQueue = KO2MessageQueue.getO2KernelQueue();

            new O2MessagesHandler(); // set up O2Message hook

            autoAddLogViewerToGui = true;
        }
예제 #3
0
 public void setLogRedirection(IO2Log _logRedirectionTarget)
 {
     LogRedirectionTarget = _logRedirectionTarget;
 }
예제 #4
0
 public void setLogRedirection(IO2Log logRedirectionTarget)
 {
     LogRedirectionTarget = logRedirectionTarget;
 }
예제 #5
0
 public KO2Log()
 {
     //LogRedirectionTarget = new Logger_Memory();		  // default to Log to memory
     LogRedirectionTarget = new Logger_DiagnosticsDebug(); // log to diagnostics
     LogHost = "";
 }
 public static IO2Log writeToDebug(this IO2Log log)
 {
     return(log.writeToDebug(false));
 }
예제 #7
0
 public Logger_DiagnosticsDebug redirectTo_DiagnosticsDebug()
 {
     LogRedirectionTarget = new Logger_DiagnosticsDebug();
     return((Logger_DiagnosticsDebug)LogRedirectionTarget);
 }
예제 #8
0
 public Logger_Memory redirectTo_Memory()
 {
     LogRedirectionTarget = new Logger_Memory();
     return((Logger_Memory)LogRedirectionTarget);
 }
예제 #9
0
 public Logger_Memory redirectTo_Memory()
 {
     LogRedirectionTarget = new Logger_Memory();
     return (Logger_Memory)LogRedirectionTarget;
 }
예제 #10
0
 public Logger_DiagnosticsDebug redirectTo_DiagnosticsDebug()
 {
     LogRedirectionTarget = new Logger_DiagnosticsDebug();
     return (Logger_DiagnosticsDebug)LogRedirectionTarget;
 }