-
-
Notifications
You must be signed in to change notification settings - Fork 8
Logger
Ayfri edited this page Feb 12, 2021
·
4 revisions
Logger
is a class in the utils
folder to help you logging things. It has multiple static methods that you can use.
const {Logger} = require('advanced-command-handler');
Logger.error(`${Logger.setColor('orange')} is not allowed.`, 'PermissionError');
Give the following result in the console (screen made on WebStorm
).
Every number is yellow by default.
Colors are set out in a static public object in the class, so you can change them.
These are the current colors :
const colors = {
red: '#b52825',
orange: '#e76a1f',
gold: '#deae17',
yellow: '#eeee23',
green: '#3ecc2d',
teal: '#11cc93',
blue: '#2582ff',
indigo: '#524cd9',
violet: '#7d31cc',
magenta: '#b154cf',
pink: '#d070a0',
brown: '#502f1e',
black: '#000000',
grey: '#6e6f77',
white: '#ffffff',
default: '#cccccc',
};
The official Discord support server is there.