![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | Field |
| struct | Suspension |
Public Member Functions | |
| virtual void | stop () |
| Suspension | suspend () |
| std::optional< Suspension > | suspendIf (bool cond) |
| virtual void | pause () |
| virtual void | resume () |
| virtual bool | isVerbose () |
| virtual void | log (Verbosity lvl, std::string_view s) noexcept=0 |
| void | log (std::string_view s) noexcept |
| virtual void | logEI (const ErrorInfo &ei) noexcept=0 |
| void | logEI (Verbosity lvl, ErrorInfo ei) noexcept |
| virtual void | warn (const std::string &msg) noexcept |
| virtual void | startActivity (ActivityId act, Verbosity lvl, ActivityType type, const std::string &s, std::span< const Field > fields, ActivityId parent) noexcept |
| virtual void | stopActivity (ActivityId act) noexcept |
| virtual void | result (ActivityId act, ResultType type, std::span< const Field > fields) noexcept |
| virtual void | result (ActivityId act, ResultType type, const nlohmann::json &json) noexcept |
| virtual void | writeToStdout (std::string_view s) |
| template<typename... Args> | |
| void | cout (const Args &... args) |
| void | writeStyledToStdout (std::string_view s) |
| template<typename... Args> | |
| void | coutStyled (const Args &... args) |
| virtual std::optional< char > | ask (std::string_view s) |
| virtual void | setPrintBuildLogs (bool printBuildLogs) |
Friends | |
| struct | Activity |
| void nix::Logger::writeStyledToStdout | ( | std::string_view | s | ) |
Write text styled with ANSI escape sequences to standard output, dropping the sequences unless shouldANSI(StandardOutputStream::Stdout).