Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method Logger.prototype.constructFullLogMessage
import { Logger } from "https://deno.land/x/unilogger@v1.0.4/src/logger.ts";

Constructs the end message that will be used to log out, using the message and log type

Parameters

message: string
  • The message you wish you log
logType: LogTypes
  • The log type.

Returns

string

The constructed message, such as [FATAL] this is my message, where "[FATAL]" has a red background