Skip to content

Commit ef7f35a

Browse files
committed
Add WsLog::e for error-level logs
1 parent c5b7481 commit ef7f35a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/WsLog.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public static function d( string $text ): void {
3636
self::l( $text, 'debug' );
3737
}
3838

39+
/**
40+
* Log an error message
41+
*/
42+
public static function e( string $text ): void {
43+
self::l( $text, 'error' );
44+
}
45+
3946
/**
4047
* Log an error message and return a throwable exception
4148
*
@@ -49,7 +56,7 @@ public static function ex(
4956
int $code = 0,
5057
?Throwable $previous = null
5158
): StaticDeployException {
52-
self::l( $message, 'error' );
59+
self::e( $message );
5360
return new StaticDeployException(
5461
$message,
5562
$code,

0 commit comments

Comments
 (0)