Skip to main content

LogLevelConst Interface

Specify levels of the logs.

Signature

export interface LogLevelConst

Properties

PropertyModifiersTypeDescription
defaultreadonly20Default LogLevel
errorreadonly30To log errors.
essentialreadonly30Essential information about the operation of Fluid.
inforeadonly20Information about the session.
verbosereadonly10Chatty logs useful for debugging.

Property Details

default

Default LogLevel

Signature

readonly default: 20;

Type: 20

Remarks

Prefer LogLevel.info when selecting a level explicitly since this will be deprecated and removed in a future release.

error

To log errors.

Signature

readonly error: 30;

Type: 30

Remarks

Prefer LogLevel.essential when selecting a level since this will be deprecated and removed in a future release.

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.