Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md, add info for debug logs on cli #59

Merged
merged 2 commits into from
Nov 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,22 @@ The config object can have one or more of the following keys.
- logSourceAction (boolean to control whether to include the action name in the log message)
- transports (array of custom winston transports)

The log level can also be overridden using the env variable AIO_LOG_LEVEL
The global log level can also be overridden using the env variable AIO_LOG_LEVEL or the env variable LOG_LEVEL.

### Enabling Debug Level Logging
### Enabling Debug Level Logging on command line
Avoid setting the global env variable by passing the log configuration in front of the aio command and stax flexibel.

To see all logs, do
```bash
$ DEBUG=* aio app run
```

Once you have figured out what logs you are interrested in, use something more specific, like
```bash
$ DEBUG=aio-telemetry:telemetry-lib* aio config
```

### Enabling Debug Level Logging programatically

Example of logger configuration:

Expand Down