You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using console sink with colours, logging using log_none fails. fwrite failed errno: 14 error: Bad address To Reproduce
Create a console sink with colours
log using loglevel::none : QUILL_LOGGER_CALL(QUILL_UNLIKELY, logger, nullptr, quill::LogLevel::None, fmt, ##__VA_ARGS__)
Expected Behaviour
I expect to see my log.
Instead I get: fwrite failed errno: 14 error: Bad address.
Environment Details
Quill 7.2.1 (but from the source code, this is present in the latest release too)
Additional context
This problem can be solved by changing the size of the colours array to 11 (or 12 to include dynamic?). std::array<std::string_view, 10> _colours; /**< Colours per log level */
and adding a default colour
The text was updated successfully, but these errors were encountered:
QuillUsr1
changed the title
LOG None not supported
log level none not supported by console sink
Oct 30, 2024
Hi! Thanks for reporting this. The purpose of LogLevel::None in the enum is to allow you to pass it to set_log_level() and disable all logging at runtime. It’s not intended to be logged as part of any log statement.
Describe the bug
When using console sink with colours, logging using log_none fails.
fwrite failed errno: 14 error: Bad address
To Reproduce
QUILL_LOGGER_CALL(QUILL_UNLIKELY, logger, nullptr, quill::LogLevel::None, fmt, ##__VA_ARGS__)
Expected Behaviour
I expect to see my log.
Instead I get:
fwrite failed errno: 14 error: Bad address
.Environment Details
Additional context
This problem can be solved by changing the size of the colours array to 11 (or 12 to include dynamic?).
std::array<std::string_view, 10> _colours; /**< Colours per log level */
and adding a default colour
The text was updated successfully, but these errors were encountered: