Documents / @faasjs/logger / colorfy
Function: colorfy()
colorfy(
level
,message
):string
Apply ANSI color codes to a message based on the log level.
Parameters
level
The log level to determine the color.
message
string
The message to be colorized.
Returns
string
The colorized message string.