var searchIndex = {}; searchIndex["log4rs"] = {"doc":"log4rs is a highly configurable logging framework modeled after Java's\nLogback and log4j libraries.","items":[[3,"Handle","log4rs","A handle to the active logger.",null,null],[4,"Error","","An error initializing the logging framework from a file.",null,null],[13,"Log","","An error from the log crate",0,null],[13,"Log4rs","","A fatal error initializing the log4rs config.",0,null],[5,"init_config","","Initializes the global logger as a log4rs logger with the provided config.",null,{"inputs":[{"name":"config"}],"output":{"name":"result"}}],[5,"init_file","","Initializes the global logger as a log4rs logger configured via a file.",null,{"inputs":[{"name":"p"},{"name":"deserializers"}],"output":{"name":"result"}}],[0,"append","","Appenders",null,null],[0,"file","log4rs::append","The file appender.",null,null],[3,"FileAppender","log4rs::append::file","An appender which logs to a file.",null,null],[3,"FileAppenderBuilder","","A builder for `FileAppender`s.",null,null],[3,"FileAppenderDeserializer","","A deserializer for the `FileAppender`.",null,null],[11,"fmt","","",1,null],[11,"append","","",1,null],[11,"builder","","Creates a new `FileAppender` builder.",1,{"inputs":[],"output":{"name":"fileappenderbuilder"}}],[11,"encoder","","Sets the output encoder 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,"deserialize","","",3,null],[0,"console","log4rs::append","The console appender.",null,null],[3,"ConsoleAppender","log4rs::append::console","An appender which logs to stdout.",null,null],[3,"ConsoleAppenderBuilder","","A builder for `ConsoleAppender`s.",null,null],[3,"ConsoleAppenderDeserializer","","A deserializer for the `ConsoleAppender`.",null,null],[11,"fmt","","",4,null],[11,"append","","",4,null],[11,"builder","","Creates a new `ConsoleAppender` builder.",4,{"inputs":[],"output":{"name":"consoleappenderbuilder"}}],[11,"encoder","","Sets the output encoder for the `ConsoleAppender`.",5,null],[11,"build","","Consumes the `ConsoleAppenderBuilder`, producing a `ConsoleAppender`.",5,null],[11,"deserialize","","",6,null],[8,"Append","log4rs::append","A trait implemented by log4rs appenders.",null,null],[10,"append","","Processes the provided `LogRecord`.",7,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.",8,null],[13,"NonexistentAppender","","A reference to a nonexistant appender.",8,null],[13,"DuplicateLoggerName","","Multiple loggers were registered with the same name.",8,null],[13,"InvalidLoggerName","","A logger name was invalid.",8,null],[11,"fmt","","",9,null],[11,"builder","","Creates a new `RootBuilder` with no appenders.",9,{"inputs":[],"output":{"name":"rootbuilder"}}],[11,"level","","Returns the minimum level of log messages that the root logger will accept.",9,null],[11,"appenders","","Returns the list of names of appenders that will be attached to the root logger.",9,null],[11,"fmt","","",10,null],[11,"appender","","Adds an appender.",10,null],[11,"appenders","","Adds appenders.",10,null],[11,"build","","Consumes the `RootBuilder`, returning the `Root`.",10,null],[11,"fmt","","",11,null],[11,"builder","","Creates a new `AppenderBuilder` with the specified name and `Append` trait object.",11,{"inputs":[],"output":{"name":"appenderbuilder"}}],[11,"name","","Returns the name of the appender.",11,null],[11,"appender","","Returns the appender.",11,null],[11,"filters","","Returns the filters attached to the appender.",11,null],[11,"fmt","","",12,null],[11,"filter","","Adds a filter.",12,null],[11,"filters","","Adds filters.",12,null],[11,"build","","Consumes the `AppenderBuilder`, returning the `Appender`.",12,null],[11,"fmt","","",13,null],[11,"builder","","Creates a new `LoggerBuilder` with the specified name and level.",13,{"inputs":[],"output":{"name":"loggerbuilder"}}],[11,"name","","Returns the name of the logger.",13,null],[11,"level","","Returns the minimum level of log messages that the logger will accept.",13,null],[11,"appenders","","Returns the list of names of appenders that will be attached to the logger.",13,null],[11,"additive","","Determines if appenders of parent loggers will also be attached to this logger.",13,null],[11,"fmt","","",14,null],[11,"appender","","Adds an appender.",14,null],[11,"appenders","","Adds appenders.",14,null],[11,"additive","","Sets the additivity of the logger.",14,null],[11,"build","","Consumes the `LoggerBuilder`, returning the `Logger`.",14,null],[11,"fmt","","",15,null],[11,"builder","","Creates a new `ConfigBuilder`.",15,{"inputs":[],"output":{"name":"configbuilder"}}],[11,"appenders","","Returns the `Appender`s associated with the `Config`.",15,null],[11,"root","","Returns the `Root` associated with the `Config`.",15,null],[11,"loggers","","Returns the `Logger`s associated with the `Config`.",15,null],[11,"appender","","Adds an appender.",16,null],[11,"appenders","","Adds appenders.",16,null],[11,"logger","","Adds a logger.",16,null],[11,"loggers","","Adds loggers.",16,null],[11,"build_lossy","","Consumes the `ConfigBuilder`, returning the `Config`.",16,null],[11,"build","","Consumes the `ConfigBuilder`, returning the `Config`.",16,null],[11,"fmt","","",17,null],[11,"errors","","Returns a slice of `Error`s.",17,null],[11,"fmt","","",17,null],[11,"description","","",17,null],[11,"fmt","","",8,null],[11,"fmt","","",8,null],[11,"description","","",8,null],[0,"filter","log4rs","Filters",null,null],[4,"Response","log4rs::filter","The response returned by a filter.",null,null],[13,"Accept","","Accept the log event.",18,null],[13,"Neutral","","Take no action on the log event.",18,null],[13,"Reject","","Reject the log event.",18,null],[0,"threshold","","The threshold filter.",null,null],[3,"ThresholdFilter","log4rs::filter::threshold","A filter that rejects all events at a level below a provided threshold.",null,null],[3,"ThresholdFilterDeserializer","","A deserializer for the `ThresholdFilter`.",null,null],[11,"fmt","","",19,null],[11,"new","","Creates a new `ThresholdFilter` with the specified threshold.",19,{"inputs":[{"name":"loglevelfilter"}],"output":{"name":"thresholdfilter"}}],[11,"filter","","",19,null],[11,"deserialize","","",20,null],[8,"Filter","log4rs::filter","The trait implemented by log4rs filters.",null,null],[10,"filter","","Filters a log event.",21,null],[0,"file","log4rs","Support for log4rs configuration from files.",null,null],[3,"Deserializers","log4rs::file","A container of `Deserialize`rs.",null,null],[3,"Config","","A deserialized log4rs configuration file.",null,null],[4,"Error","","An error returned when deserializing a TOML configuration into a log4rs `Config`.",null,null],[13,"Deserialization","","An error deserializing a component.",22,null],[13,"Config","","An error creating the log4rs `Config`.",22,null],[4,"Format","","Specifies the format of a configuration file.",null,null],[0,"raw","","Types used to deserialize config files.",null,null],[3,"Config","log4rs::file::raw","",null,null],[12,"refresh_rate","","",23,null],[12,"root","","",23,null],[12,"appenders","","",23,null],[12,"loggers","","",23,null],[3,"Root","","",null,null],[12,"level","","",24,null],[12,"appenders","","",24,null],[3,"Logger","","",null,null],[12,"level","","",25,null],[12,"appenders","","",25,null],[12,"additive","","",25,null],[3,"Appender","","",null,null],[12,"kind","","",26,null],[12,"filters","","",26,null],[12,"config","","",26,null],[3,"Filter","","",null,null],[12,"kind","","",27,null],[12,"config","","",27,null],[3,"Encoder","","",null,null],[12,"kind","","",28,null],[12,"config","","",28,null],[11,"fmt","","",23,null],[11,"eq","","",23,null],[11,"ne","","",23,null],[11,"deserialize","","",23,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"fmt","","",24,null],[11,"eq","","",24,null],[11,"ne","","",24,null],[11,"deserialize","","",24,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"fmt","","",25,null],[11,"eq","","",25,null],[11,"ne","","",25,null],[11,"deserialize","","",25,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"fmt","","",26,null],[11,"eq","","",26,null],[11,"ne","","",26,null],[11,"deserialize","","",26,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"fmt","","",27,null],[11,"eq","","",27,null],[11,"ne","","",27,null],[11,"deserialize","","",27,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"deserialize","","",28,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[8,"Deserialize","log4rs::file","A trait for objects that can deserialize log4rs components out of a config.",null,null],[16,"Trait","","The trait that this builder will create.",29,null],[10,"deserialize","","Create a new trait object based on the provided config.",29,null],[11,"default","","",30,{"inputs":[],"output":{"name":"deserializers"}}],[11,"new","","Creates a new `Deserializers` with no mappings.",30,{"inputs":[],"output":{"name":"deserializers"}}],[11,"insert","","Adds a mapping from the specified `kind` to a deserializer.",30,null],[11,"get","","Retrieves the deserializer of the specified `kind`.",30,null],[11,"deserialize","","A utility method that deserializes a value.",30,null],[11,"fmt","","",22,null],[11,"fmt","","",22,null],[11,"description","","",22,null],[11,"cause","","",22,null],[11,"clone","","",31,null],[11,"parse","","Creates a log4rs `Config` from the specified config string and `Deserializers`.",32,{"inputs":[{"name":"str"},{"name":"format"},{"name":"deserializers"}],"output":{"name":"result"}}],[11,"refresh_rate","","Returns the requested refresh rate.",32,null],[11,"into_config","","Returns the log4rs `Config`.",32,null],[11,"errors","","Returns any nonfatal errors encountered when deserializing the config.",32,null],[0,"encode","log4rs","Encoders",null,null],[3,"Style","log4rs::encode","The style applied to text output.",null,null],[12,"text","","The text (or foreground) color.",33,null],[12,"background","","The background color.",33,null],[12,"intense","","True if the text should have increased intensity.",33,null],[4,"Color","","A text or background color.",null,null],[13,"Black","","",34,null],[13,"Red","","",34,null],[13,"Green","","",34,null],[13,"Yellow","","",34,null],[13,"Blue","","",34,null],[13,"Magenta","","",34,null],[13,"Cyan","","",34,null],[13,"White","","",34,null],[0,"pattern","","A simple pattern-based encoder.",null,null],[3,"PatternEncoder","log4rs::encode::pattern","An `Encode`r configured via a format string.",null,null],[3,"PatternEncoderDeserializer","","A deserializer for the `PatternEncoder`.",null,null],[11,"fmt","","",35,null],[11,"default","","",35,{"inputs":[],"output":{"name":"patternencoder"}}],[11,"encode","","",35,null],[11,"new","","Creates a `PatternEncoder` from a pattern string.",35,{"inputs":[{"name":"str"}],"output":{"name":"patternencoder"}}],[11,"deserialize","","",36,null],[0,"writer","log4rs::encode","Implementations of the `encode::Write` trait.",null,null],[3,"AnsiWriter","log4rs::encode::writer","An `encode::Write`r that wraps an `io::Write`r, emitting ANSI escape codes\nfor text style.",null,null],[12,"0","","",37,null],[3,"ConsoleWriter","","An `encode::Write`r that outputs to a console.",null,null],[3,"ConsoleWriterLock","","An RAII lock over a console.",null,null],[3,"SimpleWriter","","An `encode::Write`r that simply delegates to an `io::Write`r and relies\non the default implementations of `encode::Write`r methods.",null,null],[12,"0","","",38,null],[11,"fmt","","",37,null],[11,"write","","",37,null],[11,"flush","","",37,null],[11,"write_all","","",37,null],[11,"write_fmt","","",37,null],[11,"set_style","","",37,null],[11,"stdout","","Returns a new `ConsoleWriter` that will write to standard out.",39,{"inputs":[],"output":{"name":"option"}}],[11,"lock","","Locks the console, preventing other threads from writing concurrently.",39,null],[11,"write","","",39,null],[11,"flush","","",39,null],[11,"write_all","","",39,null],[11,"write_fmt","","",39,null],[11,"set_style","","",39,null],[11,"write","","",40,null],[11,"flush","","",40,null],[11,"write_all","","",40,null],[11,"write_fmt","","",40,null],[11,"set_style","","",40,null],[11,"fmt","","",38,null],[11,"write","","",38,null],[11,"flush","","",38,null],[11,"write_all","","",38,null],[11,"write_fmt","","",38,null],[8,"Encode","log4rs::encode","A trait implemented by types that can serialize a `LogRecord` into a\n`Write`r.",null,null],[10,"encode","","Encodes the `LogRecord` into bytes and writes them.",41,null],[8,"Write","","A trait for types that an `Encode`r will write to.",null,null],[11,"set_style","","Sets the output text style, if supported.",42,null],[11,"fmt","","",34,null],[11,"clone","","",34,null],[11,"default","","",33,{"inputs":[],"output":{"name":"style"}}],[11,"clone","","",33,null],[11,"fmt","","",33,null],[11,"new","","Returns a `Style` with all fields set to their defaults.",33,{"inputs":[],"output":{"name":"style"}}],[11,"text","","Sets the text color.",33,null],[11,"background","","Sets the background color.",33,null],[11,"intense","","Sets the text intensity.",33,null],[11,"set_config","log4rs","Sets the logging configuration.",43,null],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"from","","",0,{"inputs":[{"name":"setloggererror"}],"output":{"name":"error"}}],[11,"from","","",0,{"inputs":[{"name":"box"}],"output":{"name":"error"}}]],"paths":[[4,"Error"],[3,"FileAppender"],[3,"FileAppenderBuilder"],[3,"FileAppenderDeserializer"],[3,"ConsoleAppender"],[3,"ConsoleAppenderBuilder"],[3,"ConsoleAppenderDeserializer"],[8,"Append"],[4,"Error"],[3,"Root"],[3,"RootBuilder"],[3,"Appender"],[3,"AppenderBuilder"],[3,"Logger"],[3,"LoggerBuilder"],[3,"Config"],[3,"ConfigBuilder"],[3,"Errors"],[4,"Response"],[3,"ThresholdFilter"],[3,"ThresholdFilterDeserializer"],[8,"Filter"],[4,"Error"],[3,"Config"],[3,"Root"],[3,"Logger"],[3,"Appender"],[3,"Filter"],[3,"Encoder"],[8,"Deserialize"],[3,"Deserializers"],[4,"Format"],[3,"Config"],[3,"Style"],[4,"Color"],[3,"PatternEncoder"],[3,"PatternEncoderDeserializer"],[3,"AnsiWriter"],[3,"SimpleWriter"],[3,"ConsoleWriter"],[3,"ConsoleWriterLock"],[8,"Encode"],[8,"Write"],[3,"Handle"]]}; initSearch(searchIndex);