allow temporary disabling of logging (for curl command with password...)

This commit is contained in:
Bart Swaalf 2015-10-14 17:02:15 +02:00
parent 9ce0a8b183
commit 0e23af22b2

View file

@ -218,6 +218,22 @@ class Console
return !$return;
}
/**
* Disable logging to logfile.
*
*/
public static function disableLogging(){
self::$logEnabled = false;
}
/**
* Enable logging to logfile.
*
*/
public static function enableLogging(){
self::$logEnabled = true;
}
/**
* Log a message to the logfile.
*