mirror of
https://github.com/andres-montanez/Magallanes
synced 2024-06-29 02:30:05 +02:00
allow temporary disabling of logging (for curl command with password...)
This commit is contained in:
parent
9ce0a8b183
commit
0e23af22b2
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue