Expand description

write provides adapters to use anything which implements Write as a logging destination.

Structs

This struct is a simple adapter which is composed of a single Write implementor. The idea is that it is guaranteed to implement Send + Sync, as well as Clone, so it allows arbitrary Write implementors to be used with LogOutputFactory.

Functions

This is a convenience function, which makes it trivial to construct a new LogOutputFactory from an arbitrary Write implementor, using the existing structures / functions defined elsewhere in this module.

Type Definitions

A LogOutputFactory is a function which can be called repeatedly, returning a Write implementor each time which can be used for log output.