LoggerSystem.js 387 B

123456789101112131415161718192021
  1. class Logger {
  2. constructor(){
  3. this.enabled = false;
  4. }
  5. log(e) {
  6. console.log("[!] Logger log:");
  7. console.log(e);
  8. console.log("[^] Logger log end ----");
  9. }
  10. error(e) {
  11. console.log("[!] Logger got an Error!!!!");
  12. console.log(e);
  13. console.log("-----------------------------");
  14. console.log("-----------------------------");
  15. throw e;
  16. }
  17. }
  18. module.exports = new Logger();