Skip to content

Commit fd3039f

Browse files
committed
fix: missing logger init on generate command
1 parent 7bee26b commit fd3039f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/logger/index.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ export const Logger = (() => {
1919
let instance;
2020

2121
/**
22+
* Inits the logger with the specified transport.
2223
*
2324
* @param {string} [transportName]
24-
* @returns {void}
25+
* @returns {LoggerInstance}
2526
*/
2627
function init(transportName = 'console') {
2728
const transport = transports[transportName];
@@ -31,6 +32,7 @@ export const Logger = (() => {
3132
}
3233

3334
instance = createLogger(transport);
35+
return instance;
3436
}
3537

3638
/**

0 commit comments

Comments
 (0)