@reliverse/relinka 1.5.2 → 1.5.4

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/bin/setup.js ADDED
@@ -0,0 +1,90 @@
1
+ export const ENABLE_DEV_DEBUG = false;
2
+ export const EXIT_GUARD = Symbol.for("relinka.exitHandlersRegistered");
3
+ export const DEFAULT_RELINKA_CONFIG = {
4
+ verbose: false,
5
+ dirs: {
6
+ maxLogFiles: 0
7
+ },
8
+ disableColors: false,
9
+ logFile: {
10
+ outputPath: "logs.log",
11
+ nameWithDate: "disable",
12
+ freshLogFile: true
13
+ },
14
+ saveLogsToFile: false,
15
+ timestamp: {
16
+ enabled: false,
17
+ format: "YYYY-MM-DD HH:mm:ss.SSS"
18
+ },
19
+ cleanupInterval: 1e4,
20
+ // 10 seconds
21
+ bufferSize: 4096,
22
+ // 4KB
23
+ maxBufferAge: 5e3,
24
+ // 5 seconds
25
+ // A default set of levels, with fallback symbols for non-Unicode terminals:
26
+ levels: {
27
+ success: {
28
+ symbol: "\u2713",
29
+ fallbackSymbol: "[OK]",
30
+ color: "greenBright",
31
+ spacing: 3
32
+ },
33
+ info: {
34
+ symbol: "\u25C8",
35
+ fallbackSymbol: "[i]",
36
+ color: "cyanBright",
37
+ spacing: 3
38
+ },
39
+ error: {
40
+ symbol: "\u2716",
41
+ fallbackSymbol: "[ERR]",
42
+ color: "redBright",
43
+ spacing: 3
44
+ },
45
+ warn: {
46
+ symbol: "\u26A0",
47
+ fallbackSymbol: "[WARN]",
48
+ color: "yellowBright",
49
+ spacing: 3
50
+ },
51
+ fatal: {
52
+ symbol: "\u203C",
53
+ fallbackSymbol: "[FATAL]",
54
+ color: "redBright",
55
+ spacing: 3
56
+ },
57
+ verbose: {
58
+ symbol: "\u2731",
59
+ fallbackSymbol: "[VERBOSE]",
60
+ color: "gray",
61
+ spacing: 3
62
+ },
63
+ internal: {
64
+ symbol: "\u2699",
65
+ fallbackSymbol: "[INTERNAL]",
66
+ color: "magentaBright",
67
+ spacing: 3
68
+ },
69
+ log: { symbol: "\u2502", fallbackSymbol: "|", color: "dim", spacing: 3 },
70
+ step: {
71
+ symbol: "\u2192",
72
+ fallbackSymbol: "[STEP]",
73
+ color: "blueBright",
74
+ spacing: 3
75
+ },
76
+ box: {
77
+ symbol: "\u25A0",
78
+ fallbackSymbol: "[BOX]",
79
+ color: "whiteBright",
80
+ spacing: 1
81
+ },
82
+ message: {
83
+ symbol: "\u{1F7A0}",
84
+ fallbackSymbol: "[MSG]",
85
+ color: "cyan",
86
+ spacing: 3
87
+ },
88
+ null: { symbol: "", fallbackSymbol: "", color: "dim", spacing: 0 }
89
+ }
90
+ };
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "license": "MIT",
11
11
  "name": "@reliverse/relinka",
12
12
  "type": "module",
13
- "version": "1.5.2",
13
+ "version": "1.5.4",
14
14
  "keywords": [
15
15
  "logger",
16
16
  "consola",