@hamak/logging-api 0.5.2 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/logging-api",
3
- "version": "0.5.2",
3
+ "version": "0.5.6",
4
4
  "description": "[DEPRECATED] Use @hamak/logging/api instead",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  "access": "public"
25
25
  },
26
26
  "scripts": {
27
- "build": "tsc -p tsconfig.lib.json",
27
+ "build": "tsc -p tsconfig.lib.json && node ../../../scripts/fix-esm-extensions.mjs ./dist",
28
28
  "clean": "rm -rf dist"
29
29
  },
30
30
  "keywords": [
@@ -1,3 +0,0 @@
1
- export * from './logger.js';
2
- export * from './transport.js';
3
- export * from './manager.js';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,14 +0,0 @@
1
- /**
2
- * @hamak/logging-api
3
- *
4
- * Public API for the pluggable logging system.
5
- * Provides interfaces, types, and service tokens for logging.
6
- *
7
- * @packageDocumentation
8
- */
9
- // Export all API interfaces
10
- export * from './api/index.js';
11
- // Export all types
12
- export * from './types/index.js';
13
- // Export service tokens
14
- export * from './tokens/index.js';
@@ -1 +0,0 @@
1
- export * from './service-tokens.js';
@@ -1,42 +0,0 @@
1
- /**
2
- * Dependency Injection tokens for logging services
3
- */
4
- /**
5
- * Token for injecting the LogManager service
6
- *
7
- * @example
8
- * ```typescript
9
- * export const myPlugin: PluginModule = {
10
- * initialize(ctx) {
11
- * const logManager = ctx.resolve(LOG_MANAGER_TOKEN);
12
- * const logger = logManager.createLogger({ plugin: 'my-plugin' });
13
- * }
14
- * };
15
- * ```
16
- */
17
- export const LOG_MANAGER_TOKEN = Symbol.for('@hamak/logging:LogManager');
18
- /**
19
- * Token for injecting a Logger instance
20
- * This is typically a factory that creates plugin-scoped loggers
21
- *
22
- * @example
23
- * ```typescript
24
- * export const myPlugin: PluginModule = {
25
- * initialize(ctx) {
26
- * // Get logger factory
27
- * const createLogger = ctx.resolve(LOGGER_TOKEN);
28
- * const logger = createLogger('my-plugin');
29
- * }
30
- * };
31
- * ```
32
- */
33
- export const LOGGER_TOKEN = Symbol.for('@hamak/logging:Logger');
34
- /**
35
- * Token for injecting the LogConfig
36
- */
37
- export const LOG_CONFIG_TOKEN = Symbol.for('@hamak/logging:Config');
38
- /**
39
- * Token for injecting the transport registry
40
- * Used internally by the logging system
41
- */
42
- export const LOG_TRANSPORTS_TOKEN = Symbol.for('@hamak/logging:Transports');
@@ -1,2 +0,0 @@
1
- export * from './log-entry.js';
2
- export * from './log-config.js';
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- /**
2
- * Log severity levels
3
- */
4
- export var LogLevel;
5
- (function (LogLevel) {
6
- LogLevel[LogLevel["TRACE"] = 0] = "TRACE";
7
- LogLevel[LogLevel["DEBUG"] = 1] = "DEBUG";
8
- LogLevel[LogLevel["INFO"] = 2] = "INFO";
9
- LogLevel[LogLevel["WARN"] = 3] = "WARN";
10
- LogLevel[LogLevel["ERROR"] = 4] = "ERROR";
11
- LogLevel[LogLevel["FATAL"] = 5] = "FATAL";
12
- })(LogLevel || (LogLevel = {}));