mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
Factor out TreeInfo
This commit is contained in:
parent
5d70b454be
commit
8451298b35
13 changed files with 100 additions and 68 deletions
|
@ -21,7 +21,7 @@ Logger * logger = makeDefaultLogger();
|
|||
|
||||
void Logger::warn(const std::string & msg)
|
||||
{
|
||||
log(lvlWarn, ANSI_RED "warning:" ANSI_NORMAL " " + msg);
|
||||
log(lvlWarn, ANSI_YELLOW "warning:" ANSI_NORMAL " " + msg);
|
||||
}
|
||||
|
||||
class SimpleLogger : public Logger
|
||||
|
|
|
@ -455,6 +455,7 @@ void ignoreException();
|
|||
#define ANSI_FAINT "\e[2m"
|
||||
#define ANSI_RED "\e[31;1m"
|
||||
#define ANSI_GREEN "\e[32;1m"
|
||||
#define ANSI_YELLOW "\e[33;1m"
|
||||
#define ANSI_BLUE "\e[34;1m"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue