var searchIndex = {}; searchIndex["log4rs"] = {"doc":"log4rs is a highly configurable logging framework modeled after Java's\nLogback and log4j libraries.","items":[[4,"FilterResponse","log4rs","The response returned by a filter.",null,null],[13,"Accept","","Accept the log event.",0,null],[13,"Neutral","","Take no action on the log event.",0,null],[13,"Reject","","Reject the log event.",0,null],[5,"init_config","","Initializes the global logger with a log4rs logger configured by `config`.",null,{"inputs":[{"name":"config"}],"output":{"name":"result"}}],[5,"init_file","","Initializes the global logger with a log4rs logger.",null,{"inputs":[{"name":"p"},{"name":"creator"}],"output":{"name":"result"}}],[0,"appender","","A set of common appenders",null,null],[3,"FileAppender","log4rs::appender","An appender which logs to a file.",null,null],[3,"FileAppenderBuilder","","A builder for `FileAppender`s.",null,null],[3,"ConsoleAppender","","An appender which logs to stdout.",null,null],[3,"ConsoleAppenderBuilder","","A builder for `ConsoleAppender`s.",null,null],[11,"append","","",1,null],[11,"builder","","Creates a new `FileAppender` builder for an appender which will log to\na file at the provided path.",1,{"inputs":[{"name":"p"}],"output":{"name":"fileappenderbuilder"}}],[11,"pattern","","Sets the output pattern for the `FileAppender`.",2,null],[11,"append","","Determines if the appender will append to or truncate the output file.",2,null],[11,"build","","Consumes the `FileAppenderBuilder`, producing a `FileAppender`.",2,null],[11,"append","","",3,null],[11,"builder","","Creates a new `ConsoleAppender` builder.",3,{"inputs":[],"output":{"name":"consoleappenderbuilder"}}],[11,"pattern","","Sets the output pattern for the `ConsoleAppender`.",4,null],[11,"build","","Consumes the `ConsoleAppenderBuilder`, producing a `ConsoleAppender`.",4,null],[0,"config","log4rs","log4rs configuration",null,null],[3,"Root","log4rs::config","Configuration for the root logger.",null,null],[3,"RootBuilder","","A builder for `Root`s.",null,null],[3,"Appender","","Configuration for an appender.",null,null],[3,"AppenderBuilder","","A builder for `Appender`s.",null,null],[3,"Logger","","Configuration for a logger.",null,null],[3,"LoggerBuilder","","A builder for `Logger`s.",null,null],[3,"Config","","A log4rs configuration.",null,null],[3,"ConfigBuilder","","A builder for `Config`s.",null,null],[3,"Errors","","Errors encountered when validating a log4rs `Config`.",null,null],[4,"Error","","An error validating a log4rs `Config`.",null,null],[13,"DuplicateAppenderName","","Multiple appenders were registered with the same name.",5,null],[13,"NonexistentAppender","","A reference to a nonexistant appender.",5,null],[13,"DuplicateLoggerName","","Multiple loggers were registered with the same name.",5,null],[13,"InvalidLoggerName","","A logger name was invalid.",5,null],[11,"fmt","","",6,null],[11,"builder","","Creates a new `RootBuilder` with no appenders and the specified level.",6,{"inputs":[{"name":"loglevelfilter"}],"output":{"name":"rootbuilder"}}],[11,"level","","Returns the minimum level of log messages that the root logger will accept.",6,null],[11,"appenders","","Returns the list of names of appenders that will be attached to the root logger.",6,null],[11,"fmt","","",7,null],[11,"appender","","Adds an appender.",7,null],[11,"appenders","","Adds appenders.",7,null],[11,"build","","Consumes the `RootBuilder`, returning the `Root`.",7,null],[11,"fmt","","",8,null],[11,"builder","","Creates a new `AppenderBuilder` with the specified name and `Append` trait object.",8,{"inputs":[{"name":"string"},{"name":"box"}],"output":{"name":"appenderbuilder"}}],[11,"name","","Returns the name of the appender.",8,null],[11,"appender","","Returns the appender.",8,null],[11,"filters","","Returns the filters attached to the appender.",8,null],[11,"fmt","","",9,null],[11,"filter","","Adds a filter.",9,null],[11,"filters","","Adds filters.",9,null],[11,"build","","Consumes the `AppenderBuilder`, returning the `Appender`.",9,null],[11,"fmt","","",10,null],[11,"builder","","Creates a new `LoggerBuilder` with the specified name and level.",10,{"inputs":[{"name":"string"},{"name":"loglevelfilter"}],"output":{"name":"loggerbuilder"}}],[11,"name","","Returns the name of the logger.",10,null],[11,"level","","Returns the minimum level of log messages that the logger will accept.",10,null],[11,"appenders","","Returns the list of names of appenders that will be attached to the logger.",10,null],[11,"additive","","Determines if appenders of parent loggers will also be attached to this logger.",10,null],[11,"fmt","","",11,null],[11,"appender","","Adds an appender.",11,null],[11,"appenders","","Adds appenders.",11,null],[11,"additive","","Sets the additivity of the logger.",11,null],[11,"build","","Consumes the `LoggerBuilder`, returning the `Logger`.",11,null],[11,"fmt","","",12,null],[11,"builder","","Creates a new `ConfigBuilder` with the specified `Root`.",12,{"inputs":[{"name":"root"}],"output":{"name":"configbuilder"}}],[11,"appenders","","Returns the `Appender`s associated with the `Config`.",12,null],[11,"root","","Returns the `Root` associated with the `Config`.",12,null],[11,"loggers","","Returns the `Logger`s associated with the `Config`.",12,null],[11,"appender","","Adds an appender.",13,null],[11,"appenders","","Adds appenders.",13,null],[11,"logger","","Adds a logger.",13,null],[11,"loggers","","Adds loggers.",13,null],[11,"build_lossy","","Consumes the `ConfigBuilder`, returning the `Config`.",13,null],[11,"build","","Consumes the `ConfigBuilder`, returning the `Config`.",13,null],[11,"fmt","","",14,null],[11,"errors","","Returns a slice of `Error`s.",14,null],[11,"fmt","","",14,null],[11,"description","","",14,null],[11,"fmt","","",5,null],[11,"fmt","","",5,null],[11,"description","","",5,null],[0,"filter","log4rs","A set of common filters.",null,null],[3,"ThresholdFilter","log4rs::filter","A filter that rejects all events at a level below a provided threshold.",null,null],[11,"new","","Creates a new `ThresholdFilter` with the specified threshold.",15,{"inputs":[{"name":"loglevelfilter"}],"output":{"name":"thresholdfilter"}}],[11,"filter","","",15,null],[0,"pattern","log4rs","Simple pattern syntax for appender output formats.",null,null],[3,"Error","log4rs::pattern","An error parsing a `PatternLayout` pattern.",null,null],[3,"PatternLayout","","A formatter object for `LogRecord`s.",null,null],[11,"fmt","","",16,null],[11,"fmt","","",16,null],[11,"description","","",16,null],[11,"fmt","","",17,null],[11,"default","","Returns a `PatternLayout` using the default pattern of `%d %l %t - %m`.",17,{"inputs":[],"output":{"name":"patternlayout"}}],[11,"new","","Creates a `PatternLayout` from a pattern string.",17,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"append","","Writes the specified `LogRecord` to the specified `Write`r according\nto its pattern.",17,null],[0,"toml","log4rs","Support for log4rs configuration from TOML files.",null,null],[3,"Creator","log4rs::toml","A type that can create appenders.",null,null],[3,"ParseErrors","","Errors encountered when parsing a log4rs TOML config.",null,null],[3,"Errors","","Errors encountered when deserializing a TOML configuration into a log4rs `Config`.",null,null],[3,"Config","","A deserialized TOML log4rs configuration.",null,null],[3,"FileAppenderCreator","","An appender creator for the `FileAppender`.",null,null],[3,"ConsoleAppenderCreator","","An appender creator for the `ConsoleAppender`.",null,null],[3,"ThresholdFilterCreator","","A filter creator for the `ThresholdFilter`.",null,null],[4,"Error","","An error returned when deserializing a TOML configuration into a log4rs `Config`.",null,null],[13,"AppenderCreation","","An error instantiating an appender.",18,null],[13,"FilterCreation","","An error instantiating a filter.",18,null],[13,"Config","","An error when creating the log4rs `Config`.",18,null],[8,"CreateAppender","","A trait implemented by types that can create appenders.",null,null],[10,"create_appender","","Creates an appender with the specified config.",19,null],[8,"CreateFilter","","A trait implemented by types that can create filters.",null,null],[10,"create_filter","","Creates a filter with the specified config.",20,null],[11,"default","","",21,{"inputs":[],"output":{"name":"creator"}}],[11,"new","","Creates a new `Creator` with no appender or filter mappings.",21,{"inputs":[],"output":{"name":"creator"}}],[11,"add_appender","","Adds a mapping from the specified `kind` to the specified appender\ncreator.",21,null],[11,"add_filter","","Adds a mapping from the specified `kind` to the specified filter\ncreator.",21,null],[11,"fmt","","",22,null],[11,"fmt","","",22,null],[11,"description","","",22,null],[11,"fmt","","",18,null],[11,"fmt","","",18,null],[11,"description","","",18,null],[11,"cause","","",18,null],[11,"fmt","","",23,null],[11,"errors","","Returns the list of errors encountered.",23,null],[11,"fmt","","",23,null],[11,"description","","",23,null],[11,"parse","","Creates a log4rs `Config` from the specified TOML config string and `Creator`.",24,{"inputs":[{"name":"str"},{"name":"creator"}],"output":{"name":"result"}}],[11,"refresh_rate","","Returns the requested refresh rate.",24,null],[11,"config","","Returns the log4rs `Config`.",24,null],[11,"create_appender","","",25,null],[11,"create_appender","","",26,null],[11,"create_filter","","",27,null],[8,"Append","log4rs","A trait implemented by log4rs appenders.",null,null],[10,"append","","Processes the provided `LogRecord`.",28,null],[8,"Filter","","The trait implemented by log4rs filters.",null,null],[10,"filter","","Filters a log event.",29,null]],"paths":[[4,"FilterResponse"],[3,"FileAppender"],[3,"FileAppenderBuilder"],[3,"ConsoleAppender"],[3,"ConsoleAppenderBuilder"],[4,"Error"],[3,"Root"],[3,"RootBuilder"],[3,"Appender"],[3,"AppenderBuilder"],[3,"Logger"],[3,"LoggerBuilder"],[3,"Config"],[3,"ConfigBuilder"],[3,"Errors"],[3,"ThresholdFilter"],[3,"Error"],[3,"PatternLayout"],[4,"Error"],[8,"CreateAppender"],[8,"CreateFilter"],[3,"Creator"],[3,"ParseErrors"],[3,"Errors"],[3,"Config"],[3,"FileAppenderCreator"],[3,"ConsoleAppenderCreator"],[3,"ThresholdFilterCreator"],[8,"Append"],[8,"Filter"]]}; initSearch(searchIndex);