12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.default = void 0;
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
- var Logger =
- /*#__PURE__*/
- function () {
- function Logger() {
- _classCallCheck(this, Logger);
- this.user = null;
- }
- _createClass(Logger, [{
- key: "log",
- value: function log() {
- var _console;
- console.log("%c[*] \t Logger \t [*]", 'color:black');
- (_console = console).log.apply(_console, arguments);
- }
- }, {
- key: "error",
- value: function error() {
- var _console2;
- console.log("%c[XXX] \t Logger Error \t [XXX]", 'color:red');
- for (var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++) {
- e[_key] = arguments[_key];
- }
- (_console2 = console).log.apply(_console2, e);
- console.log("%c[^] \t END END END\t [^]", 'color:red');
- throw e;
- }
- }, {
- key: "warning",
- value: function warning() {
- var _console3;
- console.log("%c [Warning] \t Logger Warning \t [Warning]", 'color: #F08700');
- (_console3 = console).log.apply(_console3, arguments);
- }
- }]);
- return Logger;
- }();
- var _default = new Logger();
- exports.default = _default;
|