baoyachi / simple-log Goto Github PK
View Code? Open in Web Editor NEWsimple-log write by Rust
License: MIT License
simple-log write by Rust
License: MIT License
Hello. Does it possible for logger macroc (info! error! etc) to be aware of plaform with newline? On linux all is fine, but when run on windows it seems newline is only \n, without \r. May be i can configure it somehow ?
mabe add .color()
in config builder, and add the color
in default feature so that it can be used in no_std env.
like this:
#[macro_use(quick)]
extren crate simple_log;
#[macro_use]
extern crate log;
fn main() -> Result<(), String> {
debug!("test builder debug");
info!("test builder info");
Ok(())
}
Is there a reason for ":" as separator for the milliseconds?
I would clearly prefer the standard ISO format (".").
So for the time part
HH:mm:ss.fffffff
instead of
HH:mm:ss:fffffff
use simple_log::is_debug;
link :https://docs.rs/shadow-rs/0.5.25/shadow_rs/fn.is_debug.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.