Skip to main content

LogLevelConst Interface

Specify levels of the logs.

Signature​

export interface LogLevelConst

Properties​

PropertyAlertsModifiersTypeDescription
defaultDeprecatedreadonly20Default LogLevel
errorDeprecatedreadonly30To log errors.
essentialreadonly30Essential information about the operation of Fluid.
inforeadonly20Information about the session.
verbosereadonly10Chatty logs useful for debugging.

Property Details​

default​

Default LogLevel

This API is deprecated and will be removed in a future release.

Prefer LogLevel.info when selecting a level explicitly to preserve prior treatment. Planned to be removed in 3.0.0.

Signature​

readonly default: 20;

Type: 20

See Also​

Issue #26969 for removal tracking.

error​

To log errors.

This API is deprecated and will be removed in a future release.

Prefer LogLevel.essential when selecting a level. Planned to be removed in 3.0.0.

Signature​

readonly error: 30;

Type: 30

See Also​

Issue #26969 for removal tracking.

essential​

Essential information about the operation of Fluid.

Signature​

readonly essential: 30;

Type: 30

Remarks​

It is recommended that these should always be collected, even in production, for diagnostic purposes.

info​

Information about the session.

Signature​

readonly info: 20;

Type: 20

Remarks​

These logs could be omitted in some sessions if needed (e.g. to reduce overall telemetry volume). If any are collected from a particular session, all should be.

verbose​

Chatty logs useful for debugging.

Signature​

readonly verbose: 10;

Type: 10

Remarks​

They need not be collected in production.