var searchIndex = {}; searchIndex["flexi_logger"] = {"doc":"A logger that can write the log to standard error or to a fresh file in a configurable folder\nand allows custom logline formats.\nIt had started as an extended copy of [env_logger](http://rust-lang.github.io/log/env_logger/).","items":[[4,"LogLevel","flexi_logger","An enum representing the available verbosity levels of the logging framework",null,null],[13,"Error","","The "error" level.",0,null],[13,"Warn","","The "warn" level.",0,null],[13,"Info","","The "info" level.",0,null],[13,"Debug","","The "debug" level.",0,null],[13,"Trace","","The "trace" level.",0,null],[4,"LogLevelFilter","","An enum representing the available verbosity level filters of the logging\nframework.",null,null],[13,"Off","","A level lower than all log levels.",1,null],[13,"Error","","Corresponds to the `Error` log level.",1,null],[13,"Warn","","Corresponds to the `Warn` log level.",1,null],[13,"Info","","Corresponds to the `Info` log level.",1,null],[13,"Debug","","Corresponds to the `Debug` log level.",1,null],[13,"Trace","","Corresponds to the `Trace` log level.",1,null],[3,"LogRecord","","The "payload" of a log message.",null,null],[3,"LogConfig","","Allows influencing the behavior of flexi_logger.",null,null],[12,"format","","Allows providing a custom logline format; by default ```flexi_logger::default_format``` is used.\nYou can either choose between three predefined variants,\n```default_format```, ```opt_format``` and ```detailed_format```,\nor you create and use your own format function with the signature ```fn(&LogRecord) -> String```.",2,null],[12,"log_to_file","","* If `false` (default), the log is written to stderr.\n* If `true`, a new file is created and the log is written to it.\nThe default pattern for the filename is '\\<program_name\\>\\_\\<date\\>\\_\\<time\\>.\\<suffix\\>',\n e.g. `myprog_2015-07-08_10-44-11.log`.",2,null],[12,"print_message","","If `true` (default), the name of the logfile is documented in a message to stdout.",2,null],[12,"duplicate_error","","If `true` (default), all logged error messages are duplicated to stdout.",2,null],[12,"duplicate_info","","If `true` (default), all logged warning and info messages are also duplicated to stdout.",2,null],[12,"directory","","Allows specifying a directory in which the log files are created. Default is ```None```.",2,null],[12,"suffix","","Allows specifying the filesystem suffix of the log files (without the dot). Default is ```log```.",2,null],[12,"timestamp","","Allows specifying whether or not the filename should include a timestamp. Default is ```true```.",2,null],[12,"rotate_over_size","","Allows specifying a maximum size for log files in bytes; when\nthe specified file size is reached or exceeded, the file will be closed and a new one will be opened.\nThe filename pattern changes - instead of the timestamp the serial number is included into the filename.",2,null],[12,"discriminant","","Allows specifying an additional part of the log file name that is inserted after the program name.\nDefault is ```None```.",2,null],[12,"create_symlink","","Allows specifying an option to create a symlink to the most recent log file created\nusing the given name. Default is ```None```.",2,null],[3,"FlexiLoggerError","","Describes errors in the initialization of flexi_logger.",null,null],[3,"FlexiLogger","","Does the logging.\nIs only made public to support usecases where more than one FlexiLogger instance are required in a single process.",null,null],[5,"default_format","","A logline-formatter that produces lines like <br>\n```INFO [my_prog::some_submodule] Task successfully read from conf.json```",null,{"inputs":[{"name":"logrecord"}],"output":{"name":"string"}}],[5,"opt_format","","A logline-formatter that produces lines like <br>\n```[2016-01-13 15:25:01.640870 +01:00] INFO [src/foo/bar:26] 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```[2016-01-13 15:25:01.640870 +01:00] INFO [foo::bar] src/foo/bar.rs:26: Task successfully read from conf.json```",null,{"inputs":[{"name":"logrecord"}],"output":{"name":"string"}}],[5,"init","","Initializes the flexi_logger to your needs, and the global logger with flexi_logger.",null,{"inputs":[{"name":"logconfig"},{"name":"option"}],"output":{"name":"result"}}],[11,"fmt","","",3,null],[11,"new","","Constructs an instance from a String.",3,{"inputs":[{"name":"string"}],"output":{"name":"flexiloggererror"}}],[11,"fmt","","",3,null],[11,"new","","Creates a new FlexiLogger instance based on your configuration and a loglevel specification.",4,{"inputs":[{"name":"option"},{"name":"logconfig"}],"output":{"name":"result"}}],[11,"fl_enabled","","Checks if a log line for the specified target and level is to be written really",4,null],[11,"enabled","","",4,null],[11,"log","","",4,null],[11,"new","","The default initialization initializes the logger with",2,{"inputs":[],"output":{"name":"logconfig"}}],[11,"max","","Returns the most verbose logging level.",0,{"inputs":[],"output":{"name":"loglevel"}}],[11,"to_log_level_filter","","Converts the `LogLevel` to the equivalent `LogLevelFilter`.",0,null],[11,"fmt","","",0,null],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"eq","","",0,null],[11,"partial_cmp","","",0,null],[11,"partial_cmp","","",0,null],[11,"cmp","","",0,null],[11,"from_str","","",0,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"fmt","","",0,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"eq","","",1,null],[11,"eq","","",1,null],[11,"partial_cmp","","",1,null],[11,"partial_cmp","","",1,null],[11,"cmp","","",1,null],[11,"from_str","","",1,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"max","","Returns the most verbose logging level filter.",1,{"inputs":[],"output":{"name":"loglevelfilter"}}],[11,"to_log_level","","Converts `self` to the equivalent `LogLevel`.",1,null],[11,"args","","The message body.",5,null],[11,"metadata","","Metadata about the log directive.",5,null],[11,"location","","The location of the log directive.",5,null],[11,"level","","The verbosity level of the message.",5,null],[11,"target","","The name of the target of the directive.",5,null]],"paths":[[4,"LogLevel"],[4,"LogLevelFilter"],[3,"LogConfig"],[3,"FlexiLoggerError"],[3,"FlexiLogger"],[3,"LogRecord"]]}; initSearch(searchIndex);