Skip to content

Releases: rbatis/fast_log

v1.4.3

07 Dec 09:25
Compare
Choose a tag to compare

v1.4.3

  • hide may‘s log info

v1.4.2

07 Dec 08:44
Compare
Choose a tag to compare

v1.4.2

  • fix show time string

v1.4.1

06 Dec 08:26
Compare
Choose a tag to compare

v1.4.1

v1.4.0

05 Dec 13:02
Compare
Choose a tag to compare

v1.4.0

  • add support coroutines based on may
  • add flush() method of #6

v1.3.31

25 Sep 07:55
Compare
Choose a tag to compare

v1.3.31

  • Optimize the background thread to one

v1.3.29

25 Sep 05:37
Compare
Choose a tag to compare

v1.3.29

  • Expand the capacity ratio of background channels

v1.3.27

24 Sep 13:16
Compare
Choose a tag to compare

v1.3.27

  • Fix log splitting bug and improve performance(Double performance)

v1.3.26

24 Sep 09:38
Compare
Choose a tag to compare

v1.3.26

  • Code optimization,Improve certain performance

v1.3.24

22 Jul 11:38
Compare
Choose a tag to compare

v1.3.24

  • log appender will auto create path

v1.3.21

03 Jan 11:11
Compare
Choose a tag to compare

v1.3.21

  • add log format
/// format record data
pub trait RecordFormat: Send {
    fn do_format(&self, arg: &mut FastLogRecord);
}
pub struct FastLogFormatRecord {}

impl RecordFormat for FastLogFormatRecord {
    fn do_format(&self, arg: &mut FastLogRecord) {
        let data;
        let now = format!("{:36}", arg.now.to_string());
        match arg.level {
            Level::Warn | Level::Error => {
                data = format!("{} {} {} - {}  {}\n", &now, arg.level, arg.module_path, arg.args, arg.format_line());
            }
            _ => {
                data = format!("{} {} {} - {}\n", &now, arg.level, arg.module_path, arg.args);
            }
        }
        arg.formated = data;
    }
}