Add file logger and fix log level output (#9)
All checks were successful
Build ptprnt / build (push) Successful in 1m45s

Improve logging output

Reviewed-on: #9
This commit is contained in:
2023-11-19 13:27:20 +00:00
parent cd15930e1d
commit d8b70e5d56
8 changed files with 41 additions and 15 deletions

View File

@@ -6,6 +6,7 @@ project('ptprnt', 'cpp',
usb_dep = dependency('libusb-1.0')
log_dep = dependency('spdlog')
fmt_dep = dependency('fmt')
pangocairo_dep = dependency('pangocairo')
# CLI11
@@ -23,7 +24,7 @@ ptprnt_exe = executable(
'ptprnt',
'src/main.cpp',
install: true,
dependencies : [usb_dep, log_dep, pangocairo_dep, cli11_dep],
dependencies : [usb_dep, log_dep, fmt_dep, pangocairo_dep, cli11_dep],
include_directories: incdir,
sources: [ptprnt_srcs],
cpp_args : ['-DPROJ_VERSION="'+meson.project_version()+'"'],