Skip to content

Commit

Permalink
added environment variable for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
kiran94 committed May 3, 2021
1 parent b9cfba2 commit 36181ce
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,21 @@ dgraphpandas -v DEBUG

Where the following levels are supported: `DEBUG,INFO,WARNING,ERROR,NOTSET`

By default these will log to stdout with no color but you can also add coloring by installing the [`coloredlogs`](https://pypi.org/project/coloredlogs/) module.
### Coloring Logs
By default these will log to stdout with no color but you can also add coloring by installing the [`coloredlogs`](https://pypi.org/project/coloredlogs/) module 🌈.

```sh
python -m pip install coloredlogs
```

### Environment Variables

The logging level can also be set via environment variable:

```sh
export DGRAPHPANDAS_LOG=DEBUG
```

## Module

If you are using dgraphpandas in your own script then you can set logging on a more granular level like so:
Expand Down

0 comments on commit 36181ce

Please sign in to comment.