mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-14 11:53:49 +00:00
refactor: improve console visibility
This commit is contained in:
committed by
Carlos Valente
parent
b99cf5f255
commit
715600a514
@@ -0,0 +1,15 @@
|
||||
/* eslint-disable no-console */
|
||||
|
||||
/**
|
||||
* Utility function to log messages in green
|
||||
*/
|
||||
export function consoleGreen(message: string) {
|
||||
console.log(`\x1b[32m${message}\x1b[0m`);
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility function to log messages in red
|
||||
*/
|
||||
export function consoleRed(message: string) {
|
||||
console.error(`\x1b[31m${message}\x1b[0m`);
|
||||
}
|
||||
Reference in New Issue
Block a user