JS -консольный журнал с цветом
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
If-dev
console.log('%c Oh my heavens! ', 'background: #222; color: #bada55');
//has to be backtick comma to interpolate.
public colorLogger(str: any, color = "red"){
console.log(`%c ${str}`, `color: ${color}; font-weight: bold;`);
}