This commit is contained in:
parent
645e93a03c
commit
4945bbd45c
2 changed files with 14 additions and 4 deletions
12
Makefile
Normal file
12
Makefile
Normal file
|
@ -0,0 +1,12 @@
|
|||
all: compile_commands.json
|
||||
cd build && ninja
|
||||
|
||||
compile_commands.json:
|
||||
cd build && ninja -t compdb > compile_commands.json
|
||||
|
||||
clean:
|
||||
cd build && ninja -t clean
|
||||
|
||||
.PHONY:
|
||||
compile_commands.json
|
||||
clean
|
|
@ -10,8 +10,7 @@
|
|||
#define XWIM_LOGLEVEL SPDLOG_LEVEL_DEBUG
|
||||
#endif
|
||||
|
||||
namespace xwim {
|
||||
namespace log {
|
||||
namespace xwim::log {
|
||||
|
||||
/**
|
||||
* Get log level from XWIM_LOGLEVEL environment variable.
|
||||
|
@ -75,5 +74,4 @@ void init(spdlog::level::level_enum level = spdlog::level::level_enum::off) {
|
|||
spdlog::set_level(_init_from_compile());
|
||||
}
|
||||
|
||||
} // namespace log
|
||||
} // namespace xwim
|
||||
} // namespace xwim::log
|
||||
|
|
Loading…
Reference in a new issue