You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
29 lines
1.0 KiB
const logger = require('./src/util/log/log');
|
|
const ora = require('./src/util/log/ora');
|
|
const wait = require('./src/util/misc/wait');
|
|
const chalk = require('chalk');
|
|
|
|
const client = {test: 'e', config: {logLevel: 1}};
|
|
|
|
const loggers = logger(client);
|
|
const log = loggers.log;
|
|
|
|
log();
|
|
log("Hello World!")
|
|
log("Hello in blue", {color: 'blue'});
|
|
log('A strange warning appears!', {color: 'yellowBright', source: 'warn', sourceColor: 'yellow'});
|
|
/*log('Extra line spacing before', {}, false, true);
|
|
log('regular line');
|
|
log('extra line spacing after', {}, true);
|
|
log('regular line');
|
|
log('both line spaces', {}, true, true);
|
|
log('regular line');
|
|
log('a custom fancy pink color', {color: '#ff00ff', sourceColor: '#660066'});*/
|
|
loggers.warn("A warning appears!");
|
|
loggers.error("Something bad happened!");
|
|
loggers.success("Something good happened!");
|
|
const r = async () => {
|
|
await ora(chalk.yellowBright("Waiting for a slow connection..."), wait(2000), () => loggers.success("Connected!", 0, true));
|
|
log('after thingy');
|
|
};
|
|
r(); |