fmtlog icon indicating copy to clipboard operation
fmtlog copied to clipboard

Can the log method only log the format error instead of throw the exception?

Open lsxia opened this issue 7 months ago • 2 comments

It is not that uncommon for developers to miss a "{}" in for format string, which caused format_error exception at runtime. The malformed line logging code may crash the entire application, which is not desirable. Should we only log the format_error and the line number that has the format error without crashing the application?

lsxia avatar Nov 13 '23 07:11 lsxia