Example #1
0
 /**
  * gets instance of this class
  *
  * @return tr_log
  */
 public static function getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Example #2
0
 static function info($value)
 {
     if (!tr::config()->get("app.debug")) {
         return;
     }
     tr_log::info($value);
 }