Added getNewInstance() method
This commit is contained in:
@@ -124,6 +124,19 @@ class Tlog Implements LoggerInterface
|
|||||||
return self::$instance;
|
return self::$instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new Tlog instance, than t will not interfere with the "Main" instance
|
||||||
|
*
|
||||||
|
* @return Tlog a new Tlog instance
|
||||||
|
*/
|
||||||
|
public static function getNewInstance() {
|
||||||
|
$instance = new Tlog();
|
||||||
|
|
||||||
|
$instance->init();
|
||||||
|
|
||||||
|
return $instance;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* initialize default configuration
|
* initialize default configuration
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user