123456789101112131415161718192021 |
- class Logger {
- constructor(){
- this.enabled = false;
- }
- log(e) {
- console.log("[!] Logger log:");
- console.log(e);
- console.log("[^] Logger log end ----");
- }
-
- error(e) {
- console.log("[!] Logger got an Error!!!!");
- console.log(e);
- console.log("-----------------------------");
- console.log("-----------------------------");
- throw e;
- }
- }
- module.exports = new Logger();
|