From ed91cde23a2b8875deaa083062a3656cef2e52e6 Mon Sep 17 00:00:00 2001 From: Yuuki Takahashi <20282867+yktakaha4@users.noreply.github.com> Date: Fri, 12 Jun 2020 03:13:09 +0900 Subject: [PATCH] Document log levels --- Documentation.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation.md b/Documentation.md index cede2959..f8e14b93 100644 --- a/Documentation.md +++ b/Documentation.md @@ -1171,6 +1171,21 @@ call `.withObject(o)` to add an arbitrary object (`o`) to the logs. Finally, you can trigger the logs to be downloaded to the agent's machine in JSON form by calling `connect.getLog().download()`. +### LogLevel + +For debugging, you can change the log level. + +Valid log levels are `TEST`, `TRACE`, `DEBUG`, `INFO`, `LOG`, `WARN`, `ERROR`, and `CRITICAL`. + +```js +const rootLogger = connect.getLog(); + +// Set log level. +rootLogger.setLogLevel(connect.LogLevel.TRACE); +// Set console output level. +rootLogger.setEchoLevel(connect.LogLevel.TRACE); +``` + ## CCP Error Logging The following errors are related to connectivity in the CCP. These errors are logged in the CCP logs when they occur.