Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::LoggerSettings Class Reference
Inheritance diagram for nix::LoggerSettings:
nix::Config nix::AbstractConfig

Public Attributes

Setting< bool > showTrace
Setting< std::optional< AbsolutePath > > jsonLogPath

Additional Inherited Members

Public Types inherited from nix::Config
using Settings = std::map<std::string, SettingData>
Public Member Functions inherited from nix::Config
 Config (StringMap initials={})
bool set (const std::string &name, const std::string &value) override
void addSetting (AbstractSetting *setting)
void getSettings (std::map< std::string, SettingInfo > &res, bool overriddenOnly=false) const override
void resetOverridden () override
nlohmann::json toJSON () override
std::string toKeyValue (bool overriddenOnly=false) override
void convertToArgs (Args &args, const std::string &category) override
Public Member Functions inherited from nix::AbstractConfig
void applyConfig (const std::string &contents, const std::string &path="<unknown>")
void warnUnknownSettings ()
void reapplyUnknownSettings ()
Protected Member Functions inherited from nix::AbstractConfig
 AbstractConfig (StringMap initials={})
Protected Attributes inherited from nix::AbstractConfig
StringMap unknownSettings

Member Data Documentation

◆ jsonLogPath

Setting<std::optional<AbsolutePath> > nix::LoggerSettings::jsonLogPath
Initial value:
{
this,
{},
"json-log-path",
R"(
A file or unix socket to which JSON records of Nix's log output are
written, in the same format as `--log-format internal-json`
(without the `@nix ` prefixes on each line).
Concurrent writes to the same file by multiple Nix processes are not supported and
may result in interleaved or corrupted log records.
)"}

◆ showTrace

Setting<bool> nix::LoggerSettings::showTrace
Initial value:
{
this,
false,
"show-trace",
R"(
Whether Nix should print out a stack trace in case of Nix
expression evaluation errors.
)"}

The documentation for this class was generated from the following files:
  • libutil/include/nix/util/logging.hh
  • libutil/logging.cc