* @internal param $args this method receives N-Arguments dynamically with any type, string, array, object, etc * it means that you ca use it by example: * * self::log("Beginning transaction"); * self::log("Method: ", __METHOD__, 'Returns: ', $result); * */ public static function log() { if (System::isDebugMode()) { $me = Logger::getInstance(); $args = func_get_args(); //array_unshift($args, 'Class '.__CLASS__.' '); call_user_func_array(array($me, 'setLog'), $args); } } }