Interface LocalStorageAppenderConfig

Interface defining the configuration of LocalStorageAppender objects.

interface LocalStorageAppenderConfig {
    errorFormat?: string;
    keyPrefix?: string;
    logEntryDelimiter?: string;
    logFormat: string;
    maxDays?: number;
    name: string;
    providerToken: InjectionToken<Appender>;
}

Hierarchy (View Summary)

Properties

errorFormat?: string

The string format for Errors included with a log entry.

The format string may include both string literals and AppenderPlaceholders which will be replaced with the corresponding value.

keyPrefix?: string

Defines the prefix used for the key when adding items to localStorage.

logEntryDelimiter?: string

String value used as a delimiter between each log entry

logFormat: string

The string format for each log entry.

The format string may include both string literals and AppenderPlaceholders which will be replaced with the corresponding value.

maxDays?: number

Maximum number of days' logs to be retained in localStorage

name: string

The name of the appender configuration. This value is referenced in LoggerConfig.appenderNames.

providerToken: InjectionToken<Appender>

The InjectionToken provided for the required Appender.