Skip to content

Commit

Permalink
Merge branch 'main' of github.com:VitexSoftware/php-ease-core
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 8, 2023
2 parents e5d5e64 + 5876c8b commit 26a3911
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Ease/Logger/Logging.php
Expand Up @@ -99,7 +99,7 @@ public function logBanner($prefix = '', $suffix = '')

$this->addStatusMessage(
trim(($prefix ? $prefix : \Ease\Shared::appName()) .
' PHP v' . phpversion() . ' EasePHP Framework v' . $version . ' ' . $suffix),
' PHP v' . phpversion() . ' EasePHP Framework ' . $version . ' ' . $suffix),
'debug'
);
}
Expand Down
8 changes: 7 additions & 1 deletion src/Ease/Logger/Message.php
Expand Up @@ -33,7 +33,7 @@ class Message
/**
* Message type
*
* @var string info|succes|warning|danger|mail
* @var string info|succes|warning|error|mail|debug|event
*/
public $type;

Expand Down Expand Up @@ -99,6 +99,9 @@ public static function getTypeUnicodeSymbol($type, $color = true)
case 'info':
$symbol = 'ℹ';
break;
case 'event':
$ymbol = '👻';
break;
default: // i v kroužku
$symbol = '🤔';
break;
Expand All @@ -120,6 +123,9 @@ public static function getTypeUnicodeSymbol($type, $color = true)
case 'debug': // Gear
$symbol = '⚙';
break;
case 'event':
$symbol = '✋';
break;
case 'info': // Gear
$symbol = 'ⓘ';
break;
Expand Down
3 changes: 3 additions & 0 deletions src/Ease/Logger/ToConsole.php
Expand Up @@ -164,6 +164,9 @@ public static function getTypeColor($type)
case 'info': // Kytička
$color = 'blue';
break;
case 'event':
$color = 'cyan';
break;
default: // i v kroužku
$color = 'white';
break;
Expand Down

0 comments on commit 26a3911

Please sign in to comment.