Turned this into a basic and simple logging system for now.

Currently the library will handle using the log macros to directly
call println!(). Later this can be set to actually log the errors.
This commit is contained in:
Jason Travis Smith
2016-01-10 04:24:31 -05:00
parent 38b626070a
commit 200be2c0db
9 changed files with 97 additions and 147 deletions

View File

@ -5,34 +5,8 @@
// Define the modules that are a
// part of this library.
mod log_level;
mod macros;
pub mod library_info;
pub mod log_level;
pub mod location;
pub mod entry;
pub mod logger;
// Pull certain module items to the
// fore front of the crate.
pub use self::logger::Logger;
pub use self::log_level::LogLevel;
// Define the Macros this library provides and uses.
#[macro_export]
macro_rules! write_to_log
{
() =>
{
println!("{2:?} {0:?} {1:?}", file!(), line!(), module_path!());
};
}
#[macro_export]
macro_rules! message
{
() =>
{
write_to_log!();
};
}