var searchIndex = {}; searchIndex["flexi_logger"] = {"doc":"An extended version of the [env_logger](http://rust-lang.github.io/log/env_logger/), which\ncan write the log to standard error <i>or to a fresh file</i>\nand allows custom logline formats.","items":[[3,"LogRecord","flexi_logger","The "payload" of a log message.",null,null],[3,"FlexiLoggerError","","Describes all kinds of errors in the initialization of FlexiLogger.",null,null],[3,"LogConfig","","Allows influencing the behavior of the FlexiLogger.",null,null],[12,"log_to_file","","If `true`, the log is written to a file. Default is `false`, the log is then\nwritten to stderr.\nIf `true`, a new file in the current directory is created and written to.\nThe name of the file is chosen as '\\<program_name\\>\\_\\<date\\>\\_\\<time\\>.trc', e.g. `myprog_2015-07-08_10-44-11.trc`",0,null],[12,"print_message","","If `true` (which is default), and if `log_to_file` is `true`, the name of the tracefile is documented in a message to stdout.",0,null],[12,"duplicate_error","","If `true` (which is default), and if `log_to_file` is `true`, all error messages are written also to stdout.",0,null],[12,"duplicate_info","","If `true` (which is default), and if `log_to_file` is `true`, also info messages are written also to stdout.",0,null],[12,"format","","Allows providing a custom logline format; default is flexi_logger::default_format.",0,null],[5,"default_format","","A logline-formatter that produces lines like <br>\n```INFO [my_prog::some_submodel] Task successfully read from conf.json```",null,{"inputs":[{"name":"logrecord"}],"output":{"name":"string"}}],[5,"detailed_format","","A logline-formatter that produces lines like <br>\n```[2015-07-08 12:12:32:639785] INFO [my_prog::some_submodel] src/some_submodel.rs:26: Task successfully read from conf.json```",null,{"inputs":[{"name":"logrecord"}],"output":{"name":"string"}}],[5,"init","","Initializes the global logger with a flexi logger.",null,{"inputs":[{"name":"logconfig"},{"name":"option"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"new","","",1,{"inputs":[{"name":"str"}],"output":{"name":"flexiloggererror"}}],[11,"fmt","","",1,null],[11,"new","","",0,{"inputs":[],"output":{"name":"logconfig"}}],[11,"args","","The message body.",2,null],[11,"metadata","","Metadata about the log directive.",2,null],[11,"location","","The location of the log directive.",2,null],[11,"level","","The verbosity level of the message.",2,null],[11,"target","","The name of the target of the directive.",2,null]],"paths":[[3,"LogConfig"],[3,"FlexiLoggerError"],[3,"LogRecord"]]}; initSearch(searchIndex);