[−][src]Module bdrck::logging::write
write provides adapters to use anything which implements Write as a logging destination.
Structs
SyncWriteAdapter | 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
new_log_output_factory | 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
LogOutputFactory | A LogOutputFactory is a function which can be called repeatedly, returning a Write implementor each time which can be used for log output. |