Skip to content

Commit

Permalink
Merge pull request #265 from yktakaha4/document-log-levels
Browse files Browse the repository at this point in the history
Document log levels
  • Loading branch information
jolim24601 authored Aug 14, 2020
2 parents 191e52c + ed91cde commit 79ac71a
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 @@ -1235,6 +1235,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 79ac71a

Please sign in to comment.