Skip to content

Commit

Permalink
some minor improvements (v0.0.2) (#10)
Browse files Browse the repository at this point in the history
* some minor improvements (v0.0.2)


* Update README.md


added logo img

* added comments

* added issue section in README.md
  • Loading branch information
muhammad-fiaz authored Feb 24, 2024
1 parent 40c8d2f commit 8d0481f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use logly::logly::*;

#[test]
fn test_start_and_stop_logging() {
pub fn test_start_and_stop_logging() {
let logly = logly::new();

assert!(logly.start_logging("test_log.txt").is_ok());
Expand Down
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "logly"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
description = "A Rust logging package designed to simplify and enhance your logging experience."
license = "MIT"
Expand All @@ -16,3 +16,8 @@ env_logger = "0.11.2"
termcolor = "1.1"
ansi_term = "0.12.1"
regex = "1.10.2"

# to use cargo run uncomment the following lines
#[[bin]]
#name = "logly"
#path = "src/lib.rs"
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<div align="center">

![logo banner](https://github.com/muhammad-fiaz/logly-rs/assets/75434191/500975cc-b5f4-46df-abe8-2d03c687a1c1)

# logly.rs

[![Rust](https://github.com/muhammad-fiaz/logly-rs/actions/workflows/rust.yml/badge.svg)](https://github.com/muhammad-fiaz/logly-rs/actions/workflows/rust.yml)
Expand Down Expand Up @@ -35,7 +38,7 @@ use logly::logly::*;

let logly = logly::new(); //intialize the logly

logly.start_logging("test_log.txt"); //start storing the log messages in txt, make sure to pass to create the file
logly.start_logging("test_log.txt"); //start storing the log messages in txt, make sure to pass to create the log file

logly.info("Key1", "Value1", LogColor::Cyan); // message with custom color if you don't want just set it None
logly.warn("Key2", "Value2", LogColor::Yellow);
Expand Down Expand Up @@ -76,6 +79,10 @@ You can use any of the following color codes for custom coloring:
## Contributing
Contributions are welcome! Before contributing, please read our [Contributing Guidelines](CONTRIBUTING.md) to ensure a smooth and collaborative development process.

## Issues

If you encounter any issues or have suggestions, feel free to [open an issue](https://github.com/muhammad-fiaz/logly-rs/issues) on GitHub!

## Code of Conduct

Please review our [Code of Conduct](CODE_OF_CONDUCT.md) to understand the standards of behavior we expect from contributors and users of this project.
Expand All @@ -87,13 +94,11 @@ This project is licensed under the [MIT License](). See [LICENSE](LICENSE) for m
<br>
<div align="center">

<h5> <strong> 💰 You can help me improve more by offering a little support on any platform❤️</strong></h5>
<h5> <strong> 💰 You can help this improve more by offering a little support! ❤️</strong></h5>

[![BuyMeACoffee](https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black)](https://buymeacoffee.com/muhammadfiaz) [![Patreon](https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white)](https://patreon.com/muhammadfiaz) [![Ko-Fi](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/muhammadfiaz)
[![Sponsor muhammad-fiaz](https://img.shields.io/badge/Sponsor-%231EAEDB.svg?&style=for-the-badge&logo=GitHub-Sponsors&logoColor=white)](https://github.com/sponsors/muhammad-fiaz)
[![Open Collective Backer](https://img.shields.io/badge/Open%20Collective-Backer-%238CC84B?style=for-the-badge&logo=open-collective&logoColor=white)](https://opencollective.com/muhammadfiaz)
</div>

</div>


## Happy Coding ❤️
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// lib.rs

// Import the logly module
pub mod logly;
mod logly;

1 change: 1 addition & 0 deletions src/logly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,4 @@ impl Logger {
self.color_enabled = color_enabled;
}
}

0 comments on commit 8d0481f

Please sign in to comment.