예제 #1
0
 void Awake()
 {
     // Configure the Logger with your desired prefix and log level.
     DLogger.Configure("My Game", DLogger.LogLevels.Info);
     // Log at the Debug Log Level (Less).
     DLogger.Debug("script1 - This debug message will not recorded.");
     // Log at the Info Log Level (Equal).
     DLogger.Info("script1 - I configured my logger in script1");
 }
예제 #2
0
 void Awake()
 {
     // Configure the logger as normal.
     DLogger.Configure("My Game", DLogger.LogLevels.Info);
     DLogger.Log("Logs.");
     // Some check to see if we should not be logging.
     if (this.isProduction)
     {
         DLogger.TurnOff();
     }
     DLogger.Log("Does not log.");
 }
예제 #3
0
 // Use this for initialization
 void Awake()
 {
     // Configure the Logger with your desired prefix and log level.
     DLogger.Configure("My Game", DLogger.LogLevels.Debug);
     // Log at the Debug Log Level (Equal).
     DLogger.Debug("This debug message will be recorded.");
     // Log at the Trace Log Level (Lower).
     DLogger.Trace("This trace message will not be recorded.");
     // Log at the Info Log Level (Higher).
     DLogger.Info("This info message will be recored.");
     // Log at the Info Log Level (Higher).
     DLogger.Log("This general log (info) message will be recorded.");
 }