Skip to content

Commit

Permalink
Update liblog example
Browse files Browse the repository at this point in the history
  • Loading branch information
smithrobs authored Aug 10, 2018
1 parent 1eab5f7 commit d14b3d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Nexmo.UserAgent | Optional. Your app-specific usage identifier in the format of

The library makes use of [LibLog](https://github.com/damianh/LibLog/wiki) to facilitate logging.

Your application controls how and if logging occurs. Example using [Serilog](https://serilog.net/):
Your application controls if and how logging occurs. Example using [Serilog](https://serilog.net/) and [Serilog.Sinks.Console](https://www.nuget.org/packages/Serilog.Sinks.Console) v3.x:

```C#
using Nexmo.Api.Request;
Expand All @@ -116,7 +116,7 @@ using Serilog;
// set up logging at startup
var log = new LoggerConfiguration()
.MinimumLevel.Debug()
.WriteTo.ColoredConsole(outputTemplate: "{Timestamp:HH:mm} [{Level}] ({Name:l}) {Message}")
.WriteTo.Console(outputTemplate: "{Timestamp:HH:mm} [{Level}] ({Name:l}) {Message}")
.CreateLogger();
Log.Logger = log;

Expand Down

0 comments on commit d14b3d1

Please sign in to comment.