Skip to content

Commit

Permalink
Merge pull request #73 from dgonzalez/flush-doc
Browse files Browse the repository at this point in the history
Added documentation for flush method
  • Loading branch information
mcollina authored Jul 22, 2016
2 parents 167ce3f + 37055fe commit 9536e4b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ Into this:
* <a href="#info"><code>logger.<b>info()</b></code></a>
* <a href="#debug"><code>logger.<b>debug()</b></code></a>
* <a href="#trace"><code>logger.<b>trace()</b></code></a>
* <a href="#flush"><code>logger.<b>flush()</b></code></a>
* <a href="#levelVal"><code>logger.<b>levelVal</b></code></a>
* <a href="#level-change"><code>logger.on(<b>'level-change'</b>, fn)</code></a>
* <a href="#levelValues"><code>logger.levels.<b>values</b></code> & <code>pino.levels.<b>values</b></code></a>
Expand Down Expand Up @@ -359,6 +360,13 @@ object, all its properties will be included in the JSON line.
If more args follows `msg`, these will be used to format `msg` using
[`util.format`](https://nodejs.org/api/util.html#util_util_format_format)


<a name="flush"></a>
### logger.flush()

Flushes the content of the buffer in [extreme mode](#extreme). It has no effect if
extreme mode is not enabled.

<a name="levelVal"></a>
### logger.levelVal

Expand Down

0 comments on commit 9536e4b

Please sign in to comment.