@athenna/logger 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -7,6 +7,7 @@
7
7
  * file that was distributed with this source code.
8
8
  */
9
9
  export * from './src/Logger';
10
+ export * from './src/Facades/Log';
10
11
  export * from './src/Utils/Color';
11
12
  export * from './src/Contracts/DriverContract';
12
13
  export * from './src/Contracts/FormatterContract';
package/index.js CHANGED
@@ -19,6 +19,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
19
  };
20
20
  Object.defineProperty(exports, "__esModule", { value: true });
21
21
  __exportStar(require("./src/Logger"), exports);
22
+ __exportStar(require("./src/Facades/Log"), exports);
22
23
  __exportStar(require("./src/Utils/Color"), exports);
23
24
  __exportStar(require("./src/Contracts/DriverContract"), exports);
24
25
  __exportStar(require("./src/Contracts/FormatterContract"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@athenna/logger",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "João Lenon <lenon@athenna.io>",
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @athenna/logger
3
+ *
4
+ * (c) João Lenon <lenon@athenna.io>
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
9
+ import { Logger } from '../Logger';
10
+ export declare const Log: Logger;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * @athenna/logger
4
+ *
5
+ * (c) João Lenon <lenon@athenna.io>
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.Log = void 0;
12
+ const Handler_1 = require("../Utils/Handler");
13
+ exports.Log = new Proxy({}, new Handler_1.Handler('Athenna/Core/Logger'));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @athenna/logger
3
+ *
4
+ * (c) João Lenon <lenon@athenna.io>
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
9
+ export declare class Handler {
10
+ private readonly alias;
11
+ constructor(alias: any);
12
+ get(_object: any, key: string): any;
13
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * @athenna/logger
4
+ *
5
+ * (c) João Lenon <lenon@athenna.io>
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.Handler = void 0;
12
+ class Handler {
13
+ constructor(alias) {
14
+ this.alias = alias;
15
+ }
16
+ get(_object, key) {
17
+ const provider = ioc.use(this.alias);
18
+ if (!provider) {
19
+ return () => { };
20
+ }
21
+ return provider[key];
22
+ }
23
+ }
24
+ exports.Handler = Handler;