next-core-logger
v3.0.0
Published
The Augmented.js Next - Logger.
Downloads
21
Maintainers
Readme
next-core-logger
Augmented.js Next Core - Logger
API
Table of Contents
- AbstractLogger
- _logMe
- ConsoleLogger
- ColorConsoleLogger
- BasicLogger
- log
- info
- error
- debug
- warn
- LoggerFactory
- Type
- Level
AbstractLogger
Augmented Abstract Logger
Parameters
l
Level The level to initialize the logger with
log
log a message with default level
Parameters
message
string The message to loglevel
Logger.Level The level of the log message
Returns Any The message
info
Logs a message in info level
Parameters
message
Any
error
Log a message in error level
Parameters
message
Any
debug
Log a message in debug level
Parameters
message
Any
warn
Log a message in warn level
Parameters
message
Any
_logMe
logMe method - the actual logger method that logs. Each instance will have it's own override this in an instance
Parameters
level
string The level to log tomessage
Any The message(s) to log
Examples
_logMe(message, level) { ... };
Returns string The message
ConsoleLogger
Extends AbstractLogger
Console Logger
Parameters
l
Level The level to initialize the logger with
ColorConsoleLogger
Extends AbstractLogger
Color Console Logger
Parameters
l
Level The level to initialize the logger with
BasicLogger
Extends ConsoleLogger
Basic Console Logger (level off extra text)
Parameters
l
Level The level to initialize the logger with
log
log a message with default level
Parameters
message
string The message to loglevel
Logger.Level The level of the log message
Returns Any The message
info
Logs a message in info level
Parameters
message
Any
error
Log a message in error level
Parameters
message
Any
debug
Log a message in debug level
Parameters
message
Any
warn
Log a message in warn level
Parameters
message
Any
log
log a message with default level
Parameters
message
string The message to loglevel
Logger.Level The level of the log message
Returns Any The message
info
Logs a message in info level
Parameters
message
Any
error
Log a message in error level
Parameters
message
Any
debug
Log a message in debug level
Parameters
message
Any
warn
Log a message in warn level
Parameters
message
Any
LoggerFactory
A logger factory for creating a logger instance
getLogger
getLogger - get an instance of a logger
Parameters
Examples
LoggerFactory.getLogger(Type.CONSOLE, Level.DEBUG);
Returns AbstractLogger logger Instance of a logger by istance type
Type
Logger Type
Type: Symbol
Properties
CONSOLE
Symbol The console logger (terminal)COLOR_CONSOLE
Symbol The color console logger (terminal)BASIC
Symbol The basic console logger (terminal)ICON
Symbol The icon console logger (terminal)
Level
Logger Level
Type: Symbol