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); } }
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); } }
private void log_completed__(Logging.Callback_RemoteLog_log cb__) { if(cb__ != null) { cb__(); } }
public DatalaagSoccerManager() { LoggingService = new Logging.Logging(ConfigurationManager.AppSettings["LoggingPath"] + "WebService.log"); CreateConnection(); }