Skip to content

Instantly share code, notes, and snippets.

@haf
Created April 28, 2017 20:12
Show Gist options
  • Save haf/f4a72ed19ec74c841a6cb5fe8562cb20 to your computer and use it in GitHub Desktop.
Save haf/f4a72ed19ec74c841a6cb5fe8562cb20 to your computer and use it in GitHub Desktop.
Extensions for Logary's Facade logger for Hopac
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