예제 #1
0
 // Use this for initialization
 void Start()
 {
     // Log at the Info level (Equal).
     DLogger.Log("script2 - Started.  Note the prefix should be what you configured.");
     // Log at the Debug Level (Less).
     DLogger.Debug("script2 - In script1 we set log level to Info, this should not display");
 }
예제 #2
0
    public void Init(int _seed = 0)
    {
        if (!init)
        {
            DLogger.Log("DRandom::Initializing RNG - Seed = " + _seed);
            init = true;

            seed   = _seed;
            random = new Random(seed);
        }
    }
예제 #3
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.");
 }
예제 #4
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.");
 }
예제 #5
0
 void Start()
 {
     DLogger.Log("script1 - started.");
 }
예제 #6
0
 void Awake()
 {
     // You can opt to use the default prefix and log level (info).
     DLogger.Log("using defaults, this will show.");
     DLogger.Debug("using defaults, this will not show.");
 }