var searchIndex = {}; searchIndex["slog"] = {"doc":"# Slog - Structured, composable logging for Rust","items":[[4,"Level","slog","Logging level",null,null],[13,"Critical","","Critical",0,null],[13,"Error","","Error",0,null],[13,"Warning","","Warning",0,null],[13,"Info","","Info",0,null],[13,"Debug","","Debug",0,null],[13,"Trace","","Trace",0,null],[0,"drain","","Drains - logging outputs\n# Drains",null,null],[3,"Discard","slog::drain","Drain discarding everything",null,null],[3,"Streamer","","Drain formating records and writing them to a byte-stream (io::Write)",null,null],[3,"Filter","","Filter log record",null,null],[3,"FilterLevel","","Record log level filter",null,null],[3,"Duplicate","","Duplicate records into two drains",null,null],[3,"AsyncIoWriter","","Asynchronous io::Writer",null,null],[5,"async","","Create AsyncIoWriter",null,{"inputs":[{"name":"w"}],"output":{"name":"asynciowriter"}}],[5,"stream","","Create Streamer drain",null,{"inputs":[{"name":"w"},{"name":"f"}],"output":{"name":"streamer"}}],[5,"discard","","Create a Discard drain",null,{"inputs":[],"output":{"name":"discard"}}],[5,"filter","","Filter by `cond` closure",null,{"inputs":[{"name":"f"},{"name":"d"}],"output":{"name":"filter"}}],[5,"filter_level","","Filter by log level",null,{"inputs":[{"name":"level"},{"name":"d"}],"output":{"name":"filterlevel"}}],[5,"duplicate","","Create Duplicate drain",null,{"inputs":[{"name":"d1"},{"name":"d2"}],"output":{"name":"duplicate"}}],[8,"Drain","","Drain for Loggers",null,null],[10,"log","","Write one logging record",1,null],[11,"log","","",2,null],[11,"new","","Create new `Streamer` writing to `io` using `format`",3,{"inputs":[{"name":"w"},{"name":"f"}],"output":{"name":"self"}}],[11,"log","","",3,null],[11,"new","","Create Filter wrapping given `subdrain` and passing to it records\nonly the `cond` is true",4,{"inputs":[{"name":"d"},{"name":"f"}],"output":{"name":"self"}}],[11,"log","","",4,null],[11,"new","","Create `FilterLevel`",5,{"inputs":[{"name":"d"},{"name":"level"}],"output":{"name":"self"}}],[11,"log","","",5,null],[11,"new","","Create `Duplicate`",6,{"inputs":[{"name":"d1"},{"name":"d2"}],"output":{"name":"self"}}],[11,"log","","",6,null],[11,"new","","Create `AsyncIoWriter`",7,{"inputs":[{"name":"w"}],"output":{"name":"self"}}],[11,"write","","",7,null],[11,"flush","","",7,null],[11,"drop","","",7,null],[0,"logger","slog","Logger - logging handle\n# Logger",null,null],[3,"Logger","slog::logger","Logger",null,null],[3,"RecordInfo","","Common information about a logging record",null,null],[12,"ts","","Timestamp",8,null],[12,"level","","Logging level",8,null],[12,"msg","","Message",8,null],[11,"clone","","",9,null],[11,"new_root","","Build a root logger",9,null],[11,"new","","Build a child logger",9,null],[11,"set_drain","","Set the drain for logger and it's hierarchy",9,null],[11,"swap_drain","","Swap the existing drain with a new one",9,null],[11,"log","","Log one logging record",9,null],[11,"critical","","Log critical level record",9,null],[11,"error","","Log error level record",9,null],[11,"warn","","Log warning level record",9,null],[11,"info","","Log info level record",9,null],[11,"debug","","Log debug level record",9,null],[11,"trace","","Log trace level record",9,null],[0,"ser","slog","Serialization",null,null],[8,"Serialize","slog::ser","Value that can be serialized",null,null],[10,"serialize","","Serialize self into `Serializer`",10,null],[8,"SyncSerialize","","Value that can be serialized and stored\nin logger itself.",null,null],[8,"Serializer","","Serializer",null,null],[10,"emit_bool","","Emit bool",11,null],[10,"emit_unit","","Emit `()`",11,null],[10,"emit_none","","Emit `None`",11,null],[10,"emit_char","","Emit char",11,null],[10,"emit_bytes","","Emit bytes",11,null],[10,"emit_u8","","Emit u8",11,null],[10,"emit_i8","","Emit i8",11,null],[10,"emit_u16","","Emit u16",11,null],[10,"emit_i16","","Emit i16",11,null],[10,"emit_u32","","Emit u32",11,null],[10,"emit_i32","","Emit i32",11,null],[10,"emit_f32","","Emit f32",11,null],[10,"emit_u64","","Emit u64",11,null],[10,"emit_i64","","Emit i64",11,null],[10,"emit_f64","","Emit f64",11,null],[10,"emit_usize","","Emit usize",11,null],[10,"emit_isize","","Emit isize",11,null],[10,"emit_str","","Emit str",11,null],[0,"format","slog","Output formating",null,null],[8,"Format","slog::format","Format record information",null,null],[10,"format","","Format one logging record and write into `io`",12,null],[6,"OwnedKeyValue","slog","Key value pair that can be owned by `Logger`",null,null],[6,"BorrowedKeyValue","","Key value pair that can be part of each logging record",null,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"as_short_str","","Convert to short string",0,null],[11,"as_int","","Cast `Level` to ordering integer, where\n`Critical` is 0, and `Trace` is 5",0,null],[11,"fmt","","",0,null],[11,"is_at_least","","Returns true if `self` is at least `level` logging level",0,null],[14,"o!","","Convenience function for building `&[OwnedKeyValue]`",null,null],[14,"b!","","Convenience function for building `&[BorrowedKeyValue]`",null,null]],"paths":[[4,"Level"],[8,"Drain"],[3,"Discard"],[3,"Streamer"],[3,"Filter"],[3,"FilterLevel"],[3,"Duplicate"],[3,"AsyncIoWriter"],[3,"RecordInfo"],[3,"Logger"],[8,"Serialize"],[8,"Serializer"],[8,"Format"]]}; initSearch(searchIndex);