File tree 1 file changed +15
-0
lines changed
packages/common/src/utils
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,25 @@ export interface CreateLoggerOptions {
18
18
logLevel ?: ILogLevel ;
19
19
}
20
20
21
+ /**
22
+ * Retrieves the base (default) logger instance.
23
+ *
24
+ * This base logger controls the default logging configuration and is shared
25
+ * across all loggers created with `createLogger`. Adjusting settings on this
26
+ * base logger affects all loggers derived from it unless explicitly overridden.
27
+ *
28
+ */
21
29
export function createBaseLogger ( ) {
22
30
return Logger ;
23
31
}
24
32
33
+ /**
34
+ * Creates and configures a new named logger based on the base logger.
35
+ *
36
+ * Named loggers allow specific modules or areas of your application to have
37
+ * their own logging levels and behaviors. These loggers inherit configuration
38
+ * from the base logger by default but can override settings independently.
39
+ */
25
40
export function createLogger ( name : string , options : CreateLoggerOptions = { } ) : ILogger {
26
41
const logger = Logger . get ( name ) ;
27
42
if ( options . logLevel ) {
You can’t perform that action at this time.
0 commit comments