light log is a basic lightweight rust logging crate.
Report Bug
ยท
Request Feature
```rust let logger: Logger = Logger::default();
// Logging Levels are None, Full, Info, Warning, Error // Default is Full
// Set logging level logger.set_level(LoggingLevel::Full);
// Set default origin (default is "") logger.setdefaultorigin("Logger".to_string());
// Logging with origin // [2022-07-3017:51:01] [INFO] [LogOrigin]: Info Test logger.logoriginmessage("Info Test", LoggingType::Info, Some("LogOrigin")); logger.logoriginmessage("Warning Test", LoggingType::Warning, Some("LogOrigin")); logger.logoriginmessage("Error Test", LoggingType::Error, Some("LogOrigin")); logger.logoriginmessage("Debug Test", LoggingType::Debug, Some("LogOrigin"));
// Logging without origin // [2022-07-3017:51:01] [INFO]: Info Test logger.logmessage("Info Test", LoggingType::Info); logger.logmessage("Warning Test", LoggingType::Warning); logger.logmessage("Error Test", LoggingType::Error); logger.logmessage("Debug Test", LoggingType::Debug); ```
See the open issues for a full list of proposed features (and known issues).
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
git checkout -b feature/AmazingFeature
)git commit -m 'Add some AmazingFeature'
)git push origin feature/AmazingFeature
)Distributed under the MIT License. See LICENSE
for more information.