Skip to content

Commit

Permalink
minor update
Browse files Browse the repository at this point in the history
Signed-off-by: jiajunye <[email protected]>
  • Loading branch information
jiajunye committed Sep 25, 2020
1 parent 701ab40 commit c5a9783
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/root/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ formats. It’s like having the cake and eating it too!

## User-specified Nighthawk logging

Users can use their own Nighthawk logging options when calling **ENVOY_LOG**.
Basically it would require two steps:
Users of Nighthawk can specify custom format and destination (logging sink
delegate) for all Nighthawk logging messages. Nighthawk utilizes the Envoy's
logging mechanism by performing all logging via the **ENVOY_LOG** macro. To
customize this mechanism, users need to perform two steps:
1. Create a logging sink delegate inherited from [Envoy SinkDelegate](https://github.com/envoyproxy/envoy/blob/master/source/common/common/logger.h).
2. Constructor a ServiceImpl object with an [Envoy Logger Context](https://github.com/envoyproxy/envoy/blob/master/source/common/common/logger.h) which contains user-specified log level and format.

0 comments on commit c5a9783

Please sign in to comment.