This commit is contained in:
Varun 2020-10-21 11:00:20 +05:30
parent 70b8d96219
commit 5ac07ff255
No known key found for this signature in database
GPG key ID: 93FB46DCF16E0D6F

View file

@ -60,18 +60,9 @@ class GH_LOG {
*
* @param string $str Input String
* @param string $color Text Color
* @param boolean $newline Append EOF?
* @param [type] $background Background Color
*/
public static function log( $str = '', $color = 'normal', $newline = true, $background_color = null ) {
if ( is_bool( $color ) ) {
$newline = $color;
$color = 'normal';
} elseif ( is_string( $color ) && is_string( $newline ) ) {
$background_color = $newline;
$newline = true;
}
$str = $newline ? $str . self::$eof : $str;
public static function log( $str = '', $color = 'normal', $background_color = null ) {
gh_log( self::$color( $str, $background_color ) );
}