Closed hlb8122 closed 3 years ago
Libraries like MultiLog require that you supply a Logger. I can't see a way right now to instantiate the logger without consuming it.
GelfLogger::new could take the Config struct?
GelfLogger::new
Config
If you held the sender inside GelfLogger you could perhaps remove the unsafe code blocks. The thread could start either on new or on the first log perhaps.
GelfLogger
unsafe
new
log
Libraries like MultiLog require that you supply a Logger. I can't see a way right now to instantiate the logger without consuming it.