Added getNewInstance() method

This commit is contained in:
Franck Allimant
2014-04-10 18:35:43 +02:00
parent 4f6092f86c
commit f540941d3f

View File

@@ -124,6 +124,19 @@ class Tlog Implements LoggerInterface
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
*/