Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackshadowsoftwareltd/log_rs
Logging in Rust. Example with formatted date time
https://github.com/blackshadowsoftwareltd/log_rs
log log4rs logger logging rust rust-lang
Last synced: about 1 month ago
JSON representation
Logging in Rust. Example with formatted date time
- Host: GitHub
- URL: https://github.com/blackshadowsoftwareltd/log_rs
- Owner: blackshadowsoftwareltd
- Created: 2024-01-28T14:33:52.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-11-11T06:33:56.000Z (3 months ago)
- Last Synced: 2024-11-11T07:20:02.524Z (3 months ago)
- Topics: log, log4rs, logger, logging, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Log Rust
## Date format from fn
- `_date` `2024-01-29`
- `_date_time` `2024-01-29 14:13:04`
- `_utc_time` `2024-01-29T08:16:51.758199030+00:00`
- `_utc_date_time` `2024-01-29T08:16:51`
- `_local_time` `2024-01-29T08:16:51.758199030+00:00`
- `_local_date_time` `2024-01-29T08:16:51`
### Actual Logs
```log
2024-01-29 20:51:43 [ERROR] [src/main.rs ~~ 8]
~> This is an error message
``````log
2024-01-29 20:51:43 [INFO] [src/main.rs ~~ 9]
~> "This is an info message"
``````log
2024-01-29 20:51:43 [WARN] [src/main.rs ~~ 10]
~> "This is a warning message"
```