A simple start at a logging facility.

This commit is contained in:
Jason Smith
2015-12-09 17:51:31 -05:00
parent 3b1567d357
commit 38b626070a
8 changed files with 232 additions and 0 deletions

38
src/lib.rs Normal file
View File

@ -0,0 +1,38 @@
///
///
///
// Define the modules that are a
// part of this library.
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!();
};
}