@likec4/log 1.39.0 → 1.39.2

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/dist/index.d.mts CHANGED
@@ -16,6 +16,7 @@ declare function getConsoleStderrSink(options?: ConsoleSinkOptions): Sink;
16
16
  declare function loggable(error: unknown): string;
17
17
 
18
18
  declare const logger: _logtape_logtape.Logger;
19
+
19
20
  /**
20
21
  * Get a child logger with the given subcategory.
21
22
  *
package/dist/index.mjs CHANGED
@@ -1419,10 +1419,8 @@ const logger = getLogger("likec4");
1419
1419
  function createLogger(subcategory) {
1420
1420
  return logger.getChild(subcategory);
1421
1421
  }
1422
- let configureWasCalled = false;
1423
1422
  function configureLogger(config) {
1424
1423
  try {
1425
- configureWasCalled = true;
1426
1424
  const sinks = config?.sinks ?? {};
1427
1425
  configureSync({
1428
1426
  reset: true,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@likec4/log",
3
3
  "description": "Shared interface for logging",
4
4
  "license": "MIT",
5
- "version": "1.39.0",
5
+ "version": "1.39.2",
6
6
  "bugs": "https://github.com/likec4/likec4/issues",
7
7
  "homepage": "https://likec4.dev",
8
8
  "author": "Denis Davydkov <denis@davydkov.com>",
@@ -42,7 +42,7 @@
42
42
  "typescript": "5.9.2",
43
43
  "unbuild": "3.5.0",
44
44
  "wrap-error-message": "^3.0.1",
45
- "@likec4/tsconfig": "1.39.0"
45
+ "@likec4/tsconfig": "1.39.2"
46
46
  },
47
47
  "scripts": {
48
48
  "typecheck": "tsc -b --verbose",
package/src/index.ts CHANGED
@@ -25,20 +25,16 @@ export {
25
25
  getTextFormatter,
26
26
  } from './formatters'
27
27
 
28
- export {
29
- withFilter,
30
- } from '@logtape/logtape'
28
+ export { withFilter } from '@logtape/logtape'
29
+
30
+ export const logger = getLogger('likec4')
31
31
 
32
32
  export {
33
33
  logger as consola,
34
34
  logger as rootLogger,
35
35
  }
36
36
 
37
- export {
38
- loggable,
39
- } from './utils'
40
-
41
- export const logger = getLogger('likec4')
37
+ export { loggable } from './utils'
42
38
 
43
39
  /**
44
40
  * Get a child logger with the given subcategory.
@@ -50,13 +46,10 @@ export function createLogger(subcategory: string | readonly [string] | readonly
50
46
  return logger.getChild(subcategory)
51
47
  }
52
48
 
53
- let configureWasCalled = false
54
-
55
49
  export function configureLogger<TSinkId extends string, TFilterId extends string>(
56
50
  config?: Partial<Config<TSinkId, TFilterId>>,
57
51
  ) {
58
52
  try {
59
- configureWasCalled = true
60
53
  const sinks = config?.sinks ?? {}
61
54
  configureLogtape<any, any>({
62
55
  reset: true,