$darkmode
#include <stack.hpp>
Public Member Functions | |
| void | apply () const |
| CONFABLE_SCHEMA (LoggingConf) | |
| bool | validate (const Conf &c, std::optional< SchemaError > &err) const override |
Public Member Functions inherited from fable::Confable | |
| Confable (const Confable &) noexcept | |
| Confable (Confable &&) noexcept=default | |
| Confable & | operator= (const Confable &other) noexcept |
| Confable & | operator= (Confable &&other) noexcept |
| virtual void | reset_schema () |
| Schema & | schema () |
| const Schema & | schema () const |
| virtual void | validate_or_throw (const Conf &c) const |
| virtual void | from_conf (const Conf &c) |
| virtual void | to_json (Json &j) const |
| Json | to_json () const |
Public Attributes | |
| std::string | name |
| boost::optional< std::string > | pattern |
| boost::optional< LogLevel > | level |
Additional Inherited Members | |
Protected Member Functions inherited from fable::Confable | |
| virtual Schema | schema_impl () |
LoggingConf describes a change to the logging system.
Given a JSON section, this function takes the following structure:
That is, each item that configures a logger must specify a name field, then optionally any number of the following fields:
level string, which sets the level of the loggerpattern string, which sets the output pattern of the logger. Please see this documentation for the syntax of patterns.A ConfigureException may be thrown.
|
inlineoverridevirtual |
Validate a Conf without applying it and without throwing.
By default, this uses the validate() method on schema(). If you want to guarantee anything extending beyond what's possible with schema, you can do that here.
This method should NOT call from_conf without also overriding from_conf to prevent infinite recursion.
This method should not reset err unless the method returns false.
| c | JSON to validate |
| err | reference to store error in |
Reimplemented from fable::Confable.