@reliverse/relinka 1.3.6 → 1.3.8
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 +115 -76
- package/bin/{relinka-impl → core-impl}/deprecated/components/levels/levels.d.ts +13 -13
- package/bin/{relinka-impl → core-impl}/deprecated/components/modes/basic.d.ts +19 -19
- package/bin/{relinka-impl → core-impl}/deprecated/components/modes/browser.d.ts +19 -19
- package/bin/{relinka-impl → core-impl}/deprecated/components/modes/shared.d.ts +2 -2
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/logger.d.ts +5 -5
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/mod.d.ts +20 -20
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.d.ts +140 -141
- package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.test.d.ts +1 -1
- package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/basic.d.ts +11 -11
- package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/browser.d.ts +10 -10
- package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/fancy.d.ts +10 -10
- package/bin/{relinka-impl → core-impl}/deprecated/utils/box.d.ts +114 -114
- package/bin/{relinka-impl → core-impl}/deprecated/utils/deprecatedColors.d.ts +69 -69
- package/bin/{relinka-impl → core-impl}/deprecated/utils/error.d.ts +6 -6
- package/bin/{relinka-impl → core-impl}/deprecated/utils/format.d.ts +14 -14
- package/bin/{relinka-impl → core-impl}/deprecated/utils/log.d.ts +13 -13
- package/bin/{relinka-impl → core-impl}/deprecated/utils/stream.d.ts +14 -15
- package/bin/{relinka-impl → core-impl}/deprecated/utils/string.d.ts +50 -50
- package/bin/{relinka-impl → core-impl}/deprecated/utils/tree.d.ts +41 -41
- package/bin/core-impl/impl-mod.d.ts +19 -0
- package/bin/core-impl/impl-mod.js +321 -0
- package/bin/{relinka-types.d.ts → core-types.d.ts} +193 -194
- package/bin/main.d.ts +22 -22
- package/bin/main.js +19 -19
- package/package.json +5 -5
- package/bin/relinka-impl/impl-mod.d.ts +0 -20
- package/bin/relinka-impl/impl-mod.js +0 -454
- /package/bin/{relinka-impl → core-impl}/deprecated/components/levels/levels.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/basic.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/browser.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/modes/shared.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/logger.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/mod.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/relinka-deprecated/relinka.test.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/basic.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/browser.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/components/reporters/fancy.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/box.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/deprecatedColors.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/error.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/format.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/log.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/stream.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/string.js +0 -0
- /package/bin/{relinka-impl → core-impl}/deprecated/utils/tree.js +0 -0
- /package/bin/{relinka-types.js → core-types.js} +0 -0
package/README.md
CHANGED
|
@@ -1,116 +1,155 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Relinka: Stylish Logging Made Simple
|
|
2
2
|
|
|
3
3
|
[💖 GitHub Sponsors](https://github.com/sponsors/blefnk) • [💬 Discord](https://discord.gg/Pb8uKbwpsJ) • [✨ Repo](https://github.com/reliverse/relinka-logger) • [📦 NPM](https://npmjs.com/@reliverse/relinka) • [📚 Docs](https://docs.reliverse.org)
|
|
4
4
|
|
|
5
|
-
**@reliverse/relinka** is your next
|
|
5
|
+
**@reliverse/relinka** is your next favorite logging library — built to make your terminal (and browser console — soon) output look good, stay clean, and be actually helpful. It’s styled, structured, and smart. Oh, and it works with configs, files, and colors out of the box.
|
|
6
6
|
|
|
7
|
-
## Features
|
|
7
|
+
## 🌟 Features
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
- ✨ Packed with powerful features under the hood
|
|
18
|
-
- 📝 Highly configurable flow via a configuration file
|
|
19
|
-
- 🔌 Plugin system with one built-in plugin included
|
|
9
|
+
- 🧙 Drop-in replacement for `node:console` and `consola`
|
|
10
|
+
- 💬 `relinka` supports: `info`, `warn`, `success`, `error`, `verbose`
|
|
11
|
+
- 🎨 Beautiful, color-coded logs in the terminal
|
|
12
|
+
- 🧠 Auto-formats messages, objects, and errors
|
|
13
|
+
- 📁 Save logs to file (with daily logs, cleanup, and rotation)
|
|
14
|
+
- 📦 Use it programmatically or through CLI-compatible tools
|
|
15
|
+
- ⚙️ Smart customization via config
|
|
16
|
+
- ✨ Extensible and future-proof
|
|
20
17
|
|
|
21
|
-
## Getting Started
|
|
18
|
+
## 🚀 Getting Started
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
### 1. Install
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
```bash
|
|
23
|
+
bun add @reliverse/relinka
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
And, optionally, install the CLI globally to manage your config:
|
|
26
27
|
|
|
27
|
-
|
|
28
|
+
```bash
|
|
29
|
+
bun i -g @reliverse/relinka-cli
|
|
30
|
+
```
|
|
28
31
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
### 2. Basic Usage
|
|
33
|
+
|
|
34
|
+
```ts
|
|
35
|
+
import { relinkaConfig, relinka } from "@reliverse/relinka";
|
|
36
|
+
export async function main() {
|
|
37
|
+
await relinkaConfig;
|
|
38
|
+
relinka(
|
|
39
|
+
"verbose",
|
|
40
|
+
"This message can be seen only if config was loaded AND debug is enabled",
|
|
41
|
+
);
|
|
42
|
+
relinka("info", "Everything is running smoothly");
|
|
43
|
+
relinka("warn", "This might be a problem");
|
|
44
|
+
relinka("error", "Uh oh, something broke");
|
|
45
|
+
relinka("success", "Thanks for using Relinka! 👋");
|
|
46
|
+
}
|
|
47
|
+
await main();
|
|
34
48
|
```
|
|
35
49
|
|
|
36
|
-
|
|
50
|
+
## 🧪 Advanced Usage
|
|
51
|
+
|
|
52
|
+
Want a clean blank line?
|
|
37
53
|
|
|
38
|
-
|
|
54
|
+
```ts
|
|
55
|
+
relinka("clear", ""); // Acts just like `console.clear()`
|
|
56
|
+
relinka("info", ""); // Just prints a blank newline
|
|
57
|
+
```
|
|
39
58
|
|
|
40
|
-
|
|
41
|
-
bun i -g @reliverse/relidler
|
|
42
|
-
```
|
|
59
|
+
🔜 Use the async logger if you want some advanced features (like typing text animation - soon):
|
|
43
60
|
|
|
44
|
-
|
|
61
|
+
```ts
|
|
62
|
+
import { relinkaAsync } from "@reliverse/relinka";
|
|
45
63
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
```
|
|
64
|
+
await relinkaAsync("info", "Something happened", { animate: true });
|
|
65
|
+
```
|
|
49
66
|
|
|
50
|
-
|
|
67
|
+
## ⚙️ Configuration
|
|
68
|
+
|
|
69
|
+
Create a `relinka.config.ts` file with a content like:
|
|
70
|
+
|
|
71
|
+
```ts
|
|
72
|
+
import { defineConfig } from "@reliverse/relinka";
|
|
73
|
+
export default defineConfig({
|
|
74
|
+
// Enable debug to see verbose logs
|
|
75
|
+
debug: true,
|
|
76
|
+
// Show timestamp in each log message
|
|
77
|
+
withTimestamp: false,
|
|
78
|
+
// Control whether logs are saved to a file
|
|
79
|
+
saveLogsToFile: true,
|
|
80
|
+
// Disable colors in the console
|
|
81
|
+
disableColors: false,
|
|
82
|
+
// Log file path
|
|
83
|
+
logFilePath: "relinka.log",
|
|
84
|
+
// Directory settings
|
|
85
|
+
dirs: {
|
|
86
|
+
dailyLogs: true,
|
|
87
|
+
logDir: ".reliverse/logs", // store logs in a custom folder
|
|
88
|
+
maxLogFiles: 5, // keep only the 5 most recent log files
|
|
89
|
+
specialDirs: {
|
|
90
|
+
distDirNames: [],
|
|
91
|
+
useParentConfigInDist: true,
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
```
|
|
51
96
|
|
|
52
|
-
|
|
97
|
+
Supported config file names:
|
|
53
98
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
echo "dist-libs" >> .gitignore
|
|
59
|
-
```
|
|
99
|
+
- `relinka.config.ts`
|
|
100
|
+
- 🔜 `.relinka.config.js`
|
|
101
|
+
- 🔜 `.relinkarc`
|
|
102
|
+
- 🔜 or any other supported by c12
|
|
60
103
|
|
|
61
|
-
|
|
104
|
+
## 📁 Log Files
|
|
62
105
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
106
|
+
- Stored in `.reliverse/logs/` by default
|
|
107
|
+
- Filename: `relinka.log` or `YYYY-MM-DD-relinka.log` if daily logs are enabled
|
|
108
|
+
- Auto-rotates based on `maxLogFiles`
|
|
66
109
|
|
|
67
|
-
|
|
110
|
+
## 📚 API Summary
|
|
68
111
|
|
|
69
|
-
|
|
70
|
-
relidler
|
|
71
|
-
```
|
|
112
|
+
### relinka(level, message, ...args)
|
|
72
113
|
|
|
73
|
-
|
|
74
|
-
- **It's recommended to customize this file according to your needs.**
|
|
75
|
-
- Supported names: `relidler.cfg.ts` • `relidler.config.ts` • `build.pub.ts` • `build.cfg.ts`.
|
|
114
|
+
Logs synchronously. Skips debug logs if `debug: false`.
|
|
76
115
|
|
|
77
|
-
|
|
116
|
+
### relinkaAsync(level, message, ...args)
|
|
78
117
|
|
|
79
|
-
|
|
80
|
-
relidler
|
|
81
|
-
```
|
|
118
|
+
Async logger that waits for config automatically, and provides some additional advanced features.
|
|
82
119
|
|
|
83
|
-
|
|
120
|
+
### defineConfig(config)
|
|
84
121
|
|
|
85
|
-
|
|
122
|
+
Helper to define typed config in `relinka.config.ts`
|
|
86
123
|
|
|
87
|
-
|
|
124
|
+
## 🧰 Utilities
|
|
88
125
|
|
|
89
|
-
|
|
126
|
+
✅ Timestamping
|
|
127
|
+
✅ Log file rotation
|
|
128
|
+
✅ File-safe formatting
|
|
129
|
+
✅ ANSI color support
|
|
130
|
+
✅ Error object handling
|
|
90
131
|
|
|
91
|
-
|
|
132
|
+
## 💡 Tips
|
|
92
133
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```
|
|
134
|
+
- Want `@ts-expect-error` auto-injection? Check out [`@reliverse/reinject`](https://npmjs.com/@reliverse/reinject).
|
|
135
|
+
- Using this in a CLI tool? Combine with [`@reliverse/prompts`](https://npmjs.com/@reliverse/prompts).
|
|
96
136
|
|
|
97
|
-
## TODO
|
|
137
|
+
## ✅ TODO
|
|
98
138
|
|
|
99
|
-
- [x]
|
|
100
|
-
- [
|
|
101
|
-
- [
|
|
102
|
-
- [
|
|
103
|
-
- [
|
|
104
|
-
- [ ]
|
|
105
|
-
- [ ]
|
|
106
|
-
- [ ] Make config file optional with sensible defaults
|
|
139
|
+
- [x] File-based logging
|
|
140
|
+
- [x] Timestamp support
|
|
141
|
+
- [x] Daily logs
|
|
142
|
+
- [x] Smart config
|
|
143
|
+
- [x] Log rotation
|
|
144
|
+
- [ ] CLI interface (optional)
|
|
145
|
+
- [ ] Plugin support (custom formatters, log levels, etc)
|
|
107
146
|
|
|
108
|
-
##
|
|
147
|
+
## 🙌 Shoutout
|
|
109
148
|
|
|
110
|
-
|
|
149
|
+
Relinka was inspired by this gem:
|
|
111
150
|
|
|
112
151
|
- [unjs/consola](https://github.com/unjs/consola#readme)
|
|
113
152
|
|
|
114
|
-
## License
|
|
153
|
+
## 📄 License
|
|
115
154
|
|
|
116
|
-
|
|
155
|
+
💖 MIT © [blefnk (Nazar Kornienko)](https://github.com/blefnk)
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { LogObject, LogTypeDeprecated } from "../../../../
|
|
2
|
-
/**
|
|
3
|
-
* A mapping of `LogTypeDeprecated` to its corresponding numeric log level.
|
|
4
|
-
*
|
|
5
|
-
* @type {Record<LogTypeDeprecated, number>} LogLevelsDeprecated - key-value pairs of log types to their numeric levels. See {@link LogTypeDeprecated}.
|
|
6
|
-
*/
|
|
7
|
-
export declare const LogLevelsDeprecated: Record<LogTypeDeprecated, number>;
|
|
8
|
-
/**
|
|
9
|
-
* Maps `LogTypeDeprecated` to a `Partial<LogObject>`, primarily defining the log level.
|
|
10
|
-
*
|
|
11
|
-
* @type {Record<LogTypeDeprecated, Partial<LogObject>>} LogTypesDeprecated - key-value pairs of log types to partial log objects, specifying log levels. See {@link LogTypeDeprecated} and {@link LogObject}.
|
|
12
|
-
*/
|
|
13
|
-
export declare const LogTypesDeprecated: Record<LogTypeDeprecated, Partial<LogObject>>;
|
|
1
|
+
import type { LogObject, LogTypeDeprecated } from "../../../../core-types.js";
|
|
2
|
+
/**
|
|
3
|
+
* A mapping of `LogTypeDeprecated` to its corresponding numeric log level.
|
|
4
|
+
*
|
|
5
|
+
* @type {Record<LogTypeDeprecated, number>} LogLevelsDeprecated - key-value pairs of log types to their numeric levels. See {@link LogTypeDeprecated}.
|
|
6
|
+
*/
|
|
7
|
+
export declare const LogLevelsDeprecated: Record<LogTypeDeprecated, number>;
|
|
8
|
+
/**
|
|
9
|
+
* Maps `LogTypeDeprecated` to a `Partial<LogObject>`, primarily defining the log level.
|
|
10
|
+
*
|
|
11
|
+
* @type {Record<LogTypeDeprecated, Partial<LogObject>>} LogTypesDeprecated - key-value pairs of log types to partial log objects, specifying log levels. See {@link LogTypeDeprecated} and {@link LogObject}.
|
|
12
|
+
*/
|
|
13
|
+
export declare const LogTypesDeprecated: Record<LogTypeDeprecated, Partial<LogObject>>;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { RelinkaInstanceDeprecated } from "../relinka-deprecated/relinka.js";
|
|
2
|
-
import type { RelinkaOptionsDeprecated } from "../../../../
|
|
3
|
-
export * from "./shared.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory function to create a new Relinka instance
|
|
6
|
-
*
|
|
7
|
-
* @param {Partial<RelinkaOptionsDeprecated & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link RelinkaOptionsDeprecated}.
|
|
8
|
-
* @returns {RelinkaInstanceDeprecated} A new Relinka instance configured with the given options.
|
|
9
|
-
*/
|
|
10
|
-
export declare function createRelinkaBaseDeprecated(options?: Partial<RelinkaOptionsDeprecated & {
|
|
11
|
-
fancy: boolean;
|
|
12
|
-
}>): RelinkaInstanceDeprecated;
|
|
13
|
-
/**
|
|
14
|
-
* Creates and exports a standard instance of Relinka with the default configuration.
|
|
15
|
-
* This instance can be used directly for logging throughout the application.
|
|
16
|
-
*
|
|
17
|
-
* @type {RelinkaInstanceDeprecated} relinka - The default instance of Relinka.
|
|
18
|
-
*/
|
|
19
|
-
export declare const relinkaBasicDeprecated: RelinkaInstanceDeprecated;
|
|
1
|
+
import type { RelinkaInstanceDeprecated } from "../relinka-deprecated/relinka.js";
|
|
2
|
+
import type { RelinkaOptionsDeprecated } from "../../../../core-types.js";
|
|
3
|
+
export * from "./shared.js";
|
|
4
|
+
/**
|
|
5
|
+
* Factory function to create a new Relinka instance
|
|
6
|
+
*
|
|
7
|
+
* @param {Partial<RelinkaOptionsDeprecated & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link RelinkaOptionsDeprecated}.
|
|
8
|
+
* @returns {RelinkaInstanceDeprecated} A new Relinka instance configured with the given options.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createRelinkaBaseDeprecated(options?: Partial<RelinkaOptionsDeprecated & {
|
|
11
|
+
fancy: boolean;
|
|
12
|
+
}>): RelinkaInstanceDeprecated;
|
|
13
|
+
/**
|
|
14
|
+
* Creates and exports a standard instance of Relinka with the default configuration.
|
|
15
|
+
* This instance can be used directly for logging throughout the application.
|
|
16
|
+
*
|
|
17
|
+
* @type {RelinkaInstanceDeprecated} relinka - The default instance of Relinka.
|
|
18
|
+
*/
|
|
19
|
+
export declare const relinkaBasicDeprecated: RelinkaInstanceDeprecated;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { RelinkaOptionsDeprecated } from "../../../../
|
|
2
|
-
import { type RelinkaInstanceDeprecated } from "../relinka-deprecated/relinka.js";
|
|
3
|
-
export * from "./shared.js";
|
|
4
|
-
/**
|
|
5
|
-
* Creates a new Relinka instance configured specifically for browser environments.
|
|
6
|
-
* This function sets up default reporters and a prompt method tailored to the browser's dialogue APIs.
|
|
7
|
-
*
|
|
8
|
-
* @param {Partial<RelinkaOptionsDeprecated>} [options={}] - Optional configuration options.
|
|
9
|
-
* The options can override the default reporter and prompt behavior. See {@link RelinkaOptionsDeprecated}.
|
|
10
|
-
* @returns {RelinkaInstanceDeprecated} A new Relinka instance optimized for use in browser environments.
|
|
11
|
-
*/
|
|
12
|
-
export declare function createRelinkaBrowserDeprecatedDeprecated(options?: Partial<RelinkaOptionsDeprecated>): any;
|
|
13
|
-
/**
|
|
14
|
-
* A standard Relinka instance created with browser-specific configurations.
|
|
15
|
-
* This instance can be used throughout a browser-based project.
|
|
16
|
-
*
|
|
17
|
-
* @type {RelinkaInstanceDeprecated} relinka - The default browser-configured Relinka instance.
|
|
18
|
-
*/
|
|
19
|
-
export declare const relinkaBrowserDeprecated: RelinkaInstanceDeprecated;
|
|
1
|
+
import type { RelinkaOptionsDeprecated } from "../../../../core-types.js";
|
|
2
|
+
import { type RelinkaInstanceDeprecated } from "../relinka-deprecated/relinka.js";
|
|
3
|
+
export * from "./shared.js";
|
|
4
|
+
/**
|
|
5
|
+
* Creates a new Relinka instance configured specifically for browser environments.
|
|
6
|
+
* This function sets up default reporters and a prompt method tailored to the browser's dialogue APIs.
|
|
7
|
+
*
|
|
8
|
+
* @param {Partial<RelinkaOptionsDeprecated>} [options={}] - Optional configuration options.
|
|
9
|
+
* The options can override the default reporter and prompt behavior. See {@link RelinkaOptionsDeprecated}.
|
|
10
|
+
* @returns {RelinkaInstanceDeprecated} A new Relinka instance optimized for use in browser environments.
|
|
11
|
+
*/
|
|
12
|
+
export declare function createRelinkaBrowserDeprecatedDeprecated(options?: Partial<RelinkaOptionsDeprecated>): any;
|
|
13
|
+
/**
|
|
14
|
+
* A standard Relinka instance created with browser-specific configurations.
|
|
15
|
+
* This instance can be used throughout a browser-based project.
|
|
16
|
+
*
|
|
17
|
+
* @type {RelinkaInstanceDeprecated} relinka - The default browser-configured Relinka instance.
|
|
18
|
+
*/
|
|
19
|
+
export declare const relinkaBrowserDeprecated: RelinkaInstanceDeprecated;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { LogLevelsDeprecated, LogTypesDeprecated, } from "../levels/levels.js";
|
|
2
|
-
export type * from "../../../../
|
|
1
|
+
export { LogLevelsDeprecated, LogTypesDeprecated, } from "../levels/levels.js";
|
|
2
|
+
export type * from "../../../../core-types.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
type MessageKind = "log" | "info" | "warn" | "error" | "success";
|
|
2
|
-
type VerboseKind = `${MessageKind}-verbose`;
|
|
3
|
-
type AllKinds = MessageKind | VerboseKind;
|
|
4
|
-
export declare const relinkaDeprecated: (_kind: AllKinds, title: string, content?: string, hint?: string) => void;
|
|
5
|
-
export {};
|
|
1
|
+
type MessageKind = "log" | "info" | "warn" | "error" | "success";
|
|
2
|
+
type VerboseKind = `${MessageKind}-verbose`;
|
|
3
|
+
type AllKinds = MessageKind | VerboseKind;
|
|
4
|
+
export declare const relinkaDeprecated: (_kind: AllKinds, title: string, content?: string, hint?: string) => void;
|
|
5
|
+
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { RelinkaOptionsDeprecated } from "../../../../
|
|
2
|
-
import type { RelinkaInstanceDeprecated } from "./relinka.js";
|
|
3
|
-
export * from "../modes/shared.js";
|
|
4
|
-
/**
|
|
5
|
-
* Factory function to create a new Relinka instance tailored for use in different environments.
|
|
6
|
-
* It automatically adjusts logging levels based on environment variables and execution context.
|
|
7
|
-
*
|
|
8
|
-
* @param {Partial<RelinkaOptionsDeprecated & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link RelinkaOptionsDeprecated}.
|
|
9
|
-
* @returns {RelinkaInstanceDeprecated} A new Relinka instance with configurations based on the given options and the execution environment.
|
|
10
|
-
*/
|
|
11
|
-
export declare function createRelinkaSharedDeprecated(options?: Partial<RelinkaOptionsDeprecated & {
|
|
12
|
-
fancy: boolean;
|
|
13
|
-
}>): RelinkaInstanceDeprecated;
|
|
14
|
-
/**
|
|
15
|
-
* A default instance of Relinka, created and configured for immediate use.
|
|
16
|
-
* This instance is configured based on the execution environment and the options provided.
|
|
17
|
-
*
|
|
18
|
-
* @type {RelinkaInstanceDeprecated} relinka - The default Relinka instance, ready to use.
|
|
19
|
-
*/
|
|
20
|
-
export declare const relinkaInstanceDeprecated: RelinkaInstanceDeprecated;
|
|
1
|
+
import type { RelinkaOptionsDeprecated } from "../../../../core-types.js";
|
|
2
|
+
import type { RelinkaInstanceDeprecated } from "./relinka.js";
|
|
3
|
+
export * from "../modes/shared.js";
|
|
4
|
+
/**
|
|
5
|
+
* Factory function to create a new Relinka instance tailored for use in different environments.
|
|
6
|
+
* It automatically adjusts logging levels based on environment variables and execution context.
|
|
7
|
+
*
|
|
8
|
+
* @param {Partial<RelinkaOptionsDeprecated & { fancy: boolean }>} [options={}] - Optional configuration options. See {@link RelinkaOptionsDeprecated}.
|
|
9
|
+
* @returns {RelinkaInstanceDeprecated} A new Relinka instance with configurations based on the given options and the execution environment.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createRelinkaSharedDeprecated(options?: Partial<RelinkaOptionsDeprecated & {
|
|
12
|
+
fancy: boolean;
|
|
13
|
+
}>): RelinkaInstanceDeprecated;
|
|
14
|
+
/**
|
|
15
|
+
* A default instance of Relinka, created and configured for immediate use.
|
|
16
|
+
* This instance is configured based on the execution environment and the options provided.
|
|
17
|
+
*
|
|
18
|
+
* @type {RelinkaInstanceDeprecated} relinka - The default Relinka instance, ready to use.
|
|
19
|
+
*/
|
|
20
|
+
export declare const relinkaInstanceDeprecated: RelinkaInstanceDeprecated;
|