コード例 #1
0
 public SoccerManager_Webservice()
 {
     try
     {
         LoggingService = new Logging.Logging(ConfigurationManager.AppSettings["LoggingPath"] + "WebService.log");
         DataAccess = new DatalaagSoccerManager();
     }
     catch (Exception ex)
     {
         LoggingService.WriteLine(strAppName, ex.Message);
         throw (ex);
     }
 }
コード例 #2
0
 private void Awake()
 {
     if (_instance == null)
     {
         _instance = this;
         LogLevel console = (int)LogLevel.All - LogLevel.System;
         logger = new ConsoleLogger(console);
         // chain the stack log to follow the console. makes it reachable through logger.message
         LoggerSystem = logger.SetNext(new SystemLogger(LogLevel.System | LogLevel.System));
         loggerStack  = LoggerSystem.SetNext(new StackLogger(LogLevel.Stack, 5));
         Color        = loggerStack.SetNext(new ColorLogger(LogLevel.Color, "green"));
     }
     else
     {
         Destroy(this);
     }
 }
コード例 #3
0
ファイル: logging.cs プロジェクト: intel-cornellcup/r2bot
 private void log_completed__(Logging.Callback_RemoteLog_log cb__)
 {
     if(cb__ != null)
     {
         cb__();
     }
 }
コード例 #4
0
 public DatalaagSoccerManager()
 {
     LoggingService = new Logging.Logging(ConfigurationManager.AppSettings["LoggingPath"] + "WebService.log");
     CreateConnection();
 }