Use new logging in context and log macros

This adopts the new logging functionality in the Context and makes the
existing macros use it.

The main thing to note is that the logger is in an RwLock, which
serialises all threads on writing logs.  Not doing that would need an
immutable logger object, which would turn into doing many more
syscalls for each log write and possibly need a per-thread logfile.
This commit is contained in:
Floris Bruynooghe
2019-11-23 16:05:07 +01:00
parent 4312c03a0b
commit 780cd9d864
3 changed files with 13 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ extern crate jetscii;
extern crate debug_stub_derive;
#[macro_use]
mod log;
pub mod log;
#[macro_use]
pub mod error;