Skip to content

Commit

Permalink
Document log levels
Browse files Browse the repository at this point in the history
  • Loading branch information
yktakaha4 committed Jun 11, 2020
1 parent 996705f commit ed91cde
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit ed91cde

Please sign in to comment.