Created
April 28, 2017 20:12
-
-
Save haf/f4a72ed19ec74c841a6cb5fe8562cb20 to your computer and use it in GitHub Desktop.
Extensions for Logary's Facade logger for Hopac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module LoggerExtensions | |
open Hopac | |
/// Extensions to the Expecto logger for Hopac. | |
type Expecto.Logging.Logger with | |
/// Log Verbose with backpressure as a job | |
member x.verboseWithBPJ factory = | |
x.verboseWithBP factory |> Job.fromAsync | |
/// Log Debug with backpressure as a job | |
member x.debugWithBPJ factory = | |
x.debugWithBP factory |> Job.fromAsync | |
/// Log Info with backpressure as a job | |
member x.infoWithBPJ factory = | |
x.infoWithBP factory |> Job.fromAsync | |
/// Log Warn with backpressure as a job | |
member x.warnWithBPJ factory = | |
x.warnWithBP factory |> Job.fromAsync | |
/// Log Error with backpressure as a job | |
member x.errorWithBPJ factory = | |
x.errorWithBP factory |> Job.fromAsync | |
/// Log Fatal with backpressure as a job | |
member x.fatalWithBPJ factory = | |
x.fatalWithBP factory |> Job.fromAsync |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment