summaryrefslogtreecommitdiff
path: root/src/LogInit.cxx
AgeCommit message (Collapse)Author
2020-09-23LogLevel: rename DEFAULT to NOTICEMax Kellermann
"DEFAULT" is a bad name - all it says is that it's the default value, but it doesn't say what it means. The name NOTICE mimics the syslog level.
2020-09-23LogInit: provide mappings for LogLevel::{ERROR,WARNING}Max Kellermann
2020-09-23LogInit: rename "secure" to "info"Max Kellermann
Calling this "secure" never made sense. Messages about client connects are just a small part of what gets logged as "secure", a.k.a. "info".
2020-09-23LogInit: use StringIsEqual()Max Kellermann
2020-03-16remove gcc_unusedRosen Penev
[[maybe_unused]] (introduced in C++17) is standard C++. https://clang.llvm.org/docs/AttributeReference.html#maybe-unused-unused says that this is equivalent to the GNU unused attribute. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-03-12replace assert.h with cassertRosen Penev
The former was deprecated with C++14. According to the C++11 and C++17 standards, both files are identical. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-02-01[clang-tidy] remove pointless void argRosen Penev
Found with modernize-redundant-void-arg Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-01-18copyright year 2020Max Kellermann
2019-06-17Copyright year 2019Max Kellermann
2019-05-29config/Param: add method With()Max Kellermann
2019-02-05LogInit: add `noexcept`Max Kellermann
2018-11-14LogInit: default to journal if MPD was started as systemd serviceMax Kellermann
2018-10-31*: copyright year 2018Max Kellermann
2018-10-30LogInit: work around two Android compiler warningsMax Kellermann
2018-07-17LogInit: use struct ConfigDataMax Kellermann
2018-07-16config/Config*: rename files, drop "Config" prefixMax Kellermann
2018-01-17fs/AllocatedPath: make the nullptr_t constructor publicMax Kellermann
2017-12-16Merge branch 'v0.20.x'Max Kellermann
2017-12-12*: check defined(_WIN32) instead of defined(WIN32)Max Kellermann
Only _WIN32 is defined by the compiler, and WIN32 is not standardized and may be missing. Closes #169
2017-08-10fs/FileSystem: OpenFile() returns UniqueFileDescriptorMax Kellermann
2017-01-03update copyright yearMax Kellermann
2016-12-09Merge tag 'v0.19.20'Max Kellermann
release v0.19.20
2016-12-04LogInit: convert use_stdout flag to out_fd=STDOUT_FILENOMax Kellermann
2016-12-04LogInit: initialize out_fd properly to avoid closing stdinMax Kellermann
2016-12-04LogInit: throw exception instead of calling FatalError()Max Kellermann
2016-11-02LogInit: migrate from class Error to C++ exceptionsMax Kellermann
2016-11-02LogInit: use ConfigParam::GetPath()Max Kellermann
2016-10-28config/Param: use CamelCaseMax Kellermann
2016-03-01*: include cleanup (using iwyu)Max Kellermann
2016-02-26update copyright year to 2016Max Kellermann
2015-06-22LogBackend: remove character set supportMax Kellermann
Always write UTF-8 to the log file.
2015-01-21config/Option: convert to strictly-typed enumMax Kellermann
2015-01-21config/Param: make "line" signedMax Kellermann
2015-01-21ConfigData: move struct config_param to Param.hxxMax Kellermann
2015-01-01Copyright year 2015Max Kellermann
2014-12-17LogInit: make stderr line-bufferedMax Kellermann
Make sure everything gets logged right away. No delays because stdio's buffer is not yet full.
2014-04-25LogInit: fix file descriptor leak in SIGHUP handlerMax Kellermann
2014-02-22LogBackend: use __android_log_print() on AndroidMax Kellermann
2014-02-18LogInit: disable SetLogCharset() without GLibMax Kellermann
2014-01-24Config*: move to config/Max Kellermann
2014-01-13copyright year 2014Max Kellermann
2013-12-15configure.ac: add option "--disable-glib"Max Kellermann
Allows building without GLib. This fails to compile currently, because GLib is still used in the MPD core.
2013-12-15LogInit: move backend code to LogBackend.cxxMax Kellermann
2013-11-28include cleanup using iwyuMax Kellermann
2013-10-19*: use nullptr instead of NULLMax Kellermann
2013-10-19Util/CharUtil: new library replacing g_ascii_isX()Max Kellermann
2013-10-17fs/Path: rename to AllocatedPathMax Kellermann
The new class Path only holds a string pointer without being responsible for allocation/deallocation. The FileSystem.hxx library accepts Path arguments instead of AllocatedPath, to avoid forcing callers to allocate another string object.
2013-10-15ConfigData: use std::string for config_param::valueMax Kellermann
2013-10-02Log: new logging library APIMax Kellermann
Prepare to migrate away from GLib. Currently, we're still using GLib as a backend.