@vercube/logger 0.0.22 → 0.0.23
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/README.md +10 -7
- package/dist/Drivers/ConsoleProvider.mjs +2 -2
- package/dist/Drivers/JsonProvider.mjs +1 -1
- package/dist/index.mjs +6 -5
- package/package.json +2 -2
- /package/dist/{LoggerProvider-DMxXOscV.mjs → LoggerProvider-pLewpQcY.mjs} +0 -0
- /package/dist/{Utils-5578ynXS.mjs → Utils-48kYG6c9.mjs} +0 -0
package/README.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<br>
|
|
4
4
|
<br>
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
# Vercube
|
|
7
|
+
|
|
8
|
+
Next generation HTTP framework
|
|
9
|
+
|
|
10
10
|
<a href="https://www.npmjs.com/package/@vercube/logger">
|
|
11
11
|
<img src="https://img.shields.io/npm/v/%40vercube%2Flogger?style=for-the-badge&logo=npm&color=%23767eff" alt="npm"/>
|
|
12
12
|
</a>
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
<a href="https://github.com/vercube/vercube/blob/main/LICENSE" target="_blank">
|
|
17
17
|
<img src="https://img.shields.io/npm/l/%40vercube%2Flogger?style=for-the-badge&color=%23767eff" alt="License"/>
|
|
18
18
|
</a>
|
|
19
|
+
<a href="https://codecov.io/gh/vercube/vercube" target="_blank">
|
|
20
|
+
<img src="https://img.shields.io/codecov/c/github/vercube/vercube?style=for-the-badge&color=%23767eff" alt="Coverage"/>
|
|
21
|
+
</a>
|
|
19
22
|
<br/>
|
|
20
23
|
<br/>
|
|
21
24
|
</div>
|
|
@@ -23,9 +26,9 @@
|
|
|
23
26
|
An ultra-efficient JavaScript server framework that runs anywhere - Node.js, Bun, or Deno - with unmatched flexibility and complete configurability for developers who refuse to sacrifice speed or control.
|
|
24
27
|
|
|
25
28
|
## <a name="module">Logger Module</a>
|
|
26
|
-
The Logger module provides a flexible and powerful logging system for Vercube applications. It offers structured logging with multiple transport options, log levels, and formatting capabilities. The module is designed to be highly configurable and extensible, allowing developers to easily integrate custom logging solutions while maintaining a consistent logging interface across their application.
|
|
27
|
-
|
|
28
29
|
|
|
30
|
+
The Logger module provides a flexible and powerful logging system for Vercube applications. It offers structured logging with multiple transport options, log levels, and formatting capabilities. The module is designed to be highly configurable and extensible, allowing developers to easily integrate custom logging solutions while maintaining a consistent logging interface across their application.
|
|
29
31
|
|
|
30
32
|
## <a name="documentation">📖 Documentation</a>
|
|
31
|
-
|
|
33
|
+
|
|
34
|
+
Comprehensive documentation is available at [vercube.dev](https://vercube.dev). There you'll find detailed module descriptions, project information, guides, and everything else you need to know about Vercube.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { LoggerProvider } from "../LoggerProvider-pLewpQcY.mjs";
|
|
2
|
+
import { LOG_LEVEL_COLORS } from "../Utils-48kYG6c9.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/Drivers/ConsoleProvider.ts
|
|
5
5
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./LoggerProvider-pLewpQcY.mjs";
|
|
2
|
+
import { colors, isLogLevelEnabled } from "./Utils-48kYG6c9.mjs";
|
|
2
3
|
import "node:module";
|
|
3
4
|
import { Container, Inject } from "@vercube/di";
|
|
4
5
|
|
|
@@ -37,8 +38,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
37
38
|
var Logger = class {};
|
|
38
39
|
|
|
39
40
|
//#endregion
|
|
40
|
-
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
41
|
-
var require_decorate = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.
|
|
41
|
+
//#region ../../node_modules/.pnpm/@oxc-project+runtime@0.82.3/node_modules/@oxc-project/runtime/src/helpers/decorate.js
|
|
42
|
+
var require_decorate = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@oxc-project+runtime@0.82.3/node_modules/@oxc-project/runtime/src/helpers/decorate.js": ((exports, module) => {
|
|
42
43
|
function __decorate(decorators, target, key, desc) {
|
|
43
44
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
44
45
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -50,7 +51,7 @@ var require_decorate = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@o
|
|
|
50
51
|
|
|
51
52
|
//#endregion
|
|
52
53
|
//#region src/Service/BaseLogger.ts
|
|
53
|
-
var import_decorate = /* @__PURE__ */ __toESM(require_decorate()
|
|
54
|
+
var import_decorate = /* @__PURE__ */ __toESM(require_decorate());
|
|
54
55
|
var BaseLogger = class {
|
|
55
56
|
gContainer;
|
|
56
57
|
/**
|
|
@@ -68,7 +69,7 @@ var BaseLogger = class {
|
|
|
68
69
|
fProvidersLevel = /* @__PURE__ */ new Map();
|
|
69
70
|
/**
|
|
70
71
|
* Configure logger
|
|
71
|
-
* @param options
|
|
72
|
+
* @param options
|
|
72
73
|
*/
|
|
73
74
|
configure(options) {
|
|
74
75
|
this.fLogLevel = options?.logLevel ?? "debug";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercube/logger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.23",
|
|
4
4
|
"description": "Logger module for Vercube framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"README.md"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@vercube/di": "0.0.
|
|
27
|
+
"@vercube/di": "0.0.23"
|
|
28
28
|
},
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
File without changes
|
|
File without changes
|