Use Nuget or an equivalent package manager to download and install
ErrLog.IO.
Package Manager
Install-Package errlog.io
Packet Manager
.Net CLI
dotnet add package errlog.io
ErrLog.IO has a number of settings available, however only one is required
- The API key.
Parameter |
Type |
Description |
ErrLog.settings.apikey
|
String |
Your API Key |
The simplest way to send an error from F# to ErrLog.IO is via a try/with
code block.
Before passing an exception to the logging method, remember to set the APIKey
property.
// set your api key
ErrLog.settings.apikey <- @"[Your-api-key]";
// catch an error
try
PrintHelp
printf "Enter a selection: ";
let input = Console.ReadLine();
HandleInput(input)
printfn ""
with
| ex -> ErrLog.logger.log ex |> ignore
ErrLog.IO has a number of settings available, however only one is required - the API key.
Optional Parameters
Discuss this article