@azure/logger package

Interfaces

Debugger

Type Aliases

AzureClientLogger

An AzureClientLogger is a function that can log to an appropriate severity level.

AzureLogLevel

The log levels supported by the logger. The log levels in order of most verbose to least verbose are:

  • verbose
  • info
  • warning
  • error

Functions

AzureLogger(any[])

The AzureLogger provides a mechanism for overriding where logs are output to. By default, logs are sent to stderr. Override the log method to redirect logs to another location.

getLogLevel()

Retrieves the currently specified log level.

setLogLevel(AzureLogLevel)

Immediately enables logging at the specified log level. If no level is specified, logging is disabled.

Function Details

AzureLogger(any[])

The AzureLogger provides a mechanism for overriding where logs are output to. By default, logs are sent to stderr. Override the log method to redirect logs to another location.

function AzureLogger(args: any[])

Parameters

args

any[]

getLogLevel()

Retrieves the currently specified log level.

function getLogLevel(): AzureLogLevel | undefined

Returns

AzureLogLevel | undefined

setLogLevel(AzureLogLevel)

Immediately enables logging at the specified log level. If no level is specified, logging is disabled.

function setLogLevel(level?: AzureLogLevel)

Parameters

level
AzureLogLevel

The log level to enable for logging. Options from most verbose to least verbose are:

  • verbose
  • info
  • warning
  • error