Merge branch 'master' of https://github.com/TobyG74/tiktok-api-dl
This commit is contained in:
commit
62a726538e
23
src/lib/logger.ts
Normal file
23
src/lib/logger.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
import chalk from "chalk"
|
||||||
|
|
||||||
|
export class Logger {
|
||||||
|
static success(message: string): void {
|
||||||
|
console.log(chalk.green("✓ " + message))
|
||||||
|
}
|
||||||
|
|
||||||
|
static error(message: string): void {
|
||||||
|
console.error(chalk.red("✗ " + message))
|
||||||
|
}
|
||||||
|
|
||||||
|
static info(message: string): void {
|
||||||
|
console.log(chalk.blue("ℹ " + message))
|
||||||
|
}
|
||||||
|
|
||||||
|
static warning(message: string): void {
|
||||||
|
console.log(chalk.yellow("⚠ " + message))
|
||||||
|
}
|
||||||
|
|
||||||
|
static result(message: string, color = chalk.cyan): void {
|
||||||
|
console.log(color(message))
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user