Logger class
Constructors
Logger(any, (level: string, message: string) => void) |
Properties
level | |
logger |
|
Log |
Methods
alert(any) | |
critical(any) | |
debug(any) | |
default |
|
emergency(any) | |
error(any) | |
info(any) | |
log(any, any) | |
notice(any) | |
warn(any) |
Constructor Details
Logger(any, (level: string, message: string) => void)
new Logger(level: any, loggerFunction?: (level: string, message: string) => void)
Parameters
- level
-
any
- loggerFunction
-
(level: string, message: string) => void
Property Details
level
level: string
Property Value
string
loggerFunction
loggerFunction: (level: string, message: string) => void
Property Value
(level: string, message: string) => void
LogLevels
static LogLevels: { ALERT: string, CRITICAL: string, DEBUG: string, EMERGENCY: string, ERROR: string, INFO: string, NOTICE: string, WARNING: string }
Property Value
{ ALERT: string, CRITICAL: string, DEBUG: string, EMERGENCY: string, ERROR: string, INFO: string, NOTICE: string, WARNING: string }
Method Details
alert(any)
function alert(msg: any)
Parameters
- msg
-
any
critical(any)
function critical(msg: any)
Parameters
- msg
-
any
debug(any)
function debug(msg: any)
Parameters
- msg
-
any
defaultLoggerFunction(string, string)
function defaultLoggerFunction(logLevel: string, msg: string)
Parameters
- logLevel
-
string
- msg
-
string
emergency(any)
function emergency(msg: any)
Parameters
- msg
-
any
error(any)
function error(msg: any)
Parameters
- msg
-
any
info(any)
function info(msg: any)
Parameters
- msg
-
any
log(any, any)
function log(level: any, msg: any)
Parameters
- level
-
any
- msg
-
any
notice(any)
function notice(msg: any)
Parameters
- msg
-
any
warn(any)
function warn(msg: any)
Parameters
- msg
-
any
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for JavaScript
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for