File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1+ const ACL = require ( "../index" ) ;
2+
3+ // Create a logger instance with custom color configuration
4+ const logger = new ACL ( {
5+ generateReport : true , // Generate a report at the end of the logging session showing log method usage statistics.
6+ } ) ;
7+
8+ // Logging with different levels to demonstrate color differences
9+ logger . debug ( "This is a debug message." ) ;
10+ logger . log ( "This is a regular log message." ) ;
11+ logger . info ( "This is an informational message." ) ;
12+ logger . warn ( "This is a warning message, it will include caller information." ) ;
13+ logger . error ( "This is an error message, it will include caller information." ) ;
14+ logger . fatal ( "This is a fatal message, terminating the process." ) ;
15+
16+ logger . report ( ) ;
You can’t perform that action at this time.
0 commit comments