Disclaimer: This website requires JavaScript to function properly. Some features may not work as expected. Please enable JavaScript in your browser settings for the best experience.

Dev Guide
Dev GuideUser GuidesLegal TermsGitHubDevCommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

OCP App SDK / logger

logger

Const ILogger

Logger instance to be used by OCP apps.
Minimum log level can be configured by using ocp app set-log-level command, e.g.:
ocp app set-log-level [email protected] error
ocp app set-log-level [email protected] info
To get the current log level of an app, use the command ocp app get-log-level command, e.g.:
ocp app get-log-level [email protected] --trackerId=1234
Accepted levels include debug, info, warn, error

Defined in: src/logging/Logger.ts:301