New
v2.1.0
API documentation available on the stumpless website.
Added
- Custom function logging targets.
- Localizations for:
- Bengali (bn-IN :india:)
- Chinese (zh-CN :cn:)
- Czech (cz-CZ :czech_republic:)
- Hindi (hi-IN :india:)
- Polish (pl-PL :poland:)
- Portuguese (pt-BR :brazil:)
- Spanish (es-ES :es:)
- Systemd journal logging targets (journald).
- Log source file tracing functions:
stump_tracestumpless_trace_entrystumpless_trace_logstumpless_trace_messagestumplog_tracevstump_tracevstumpless_trace_logvstumpless_trace_messagevstumplog_trace
- The TRACE log level severity shorthand function macros:
stump_tstump_t_entrystump_t_logstump_t_messagestumplog_t
- Macro
STUMPLESS_SEVERITY_TRACE_VALUEas an alias forSTUMPLESS_SEVERITY_DEBUG_VALUE. - Macro
STUMPLESS_SEVERITY_TRACEfor the new level as an alias for theSTUMPLESS_SEVERITY_DEBUGenum member. - Runtime filtering mechanism, as well as default support for log masks, via
the following functions:
stumpless_get_target_filterstumpless_get_target_maskstumpless_mask_filterstumpless_set_target_filterstumpless_set_target_maskstumplog_set_mask
- Safer and more performant
_strversions of any function taking a format specifier string and variable number of arguments. - Default Windows Event Log messages that can be used when none are specified.
- Full unicode support with Windows Event Log targets, along with the following
new functions:
stumpless_add_default_wel_event_sourcestumpless_add_wel_event_sourcestumpless_add_wel_event_source_wstumpless_get_wel_categorystumpless_get_wel_event_idstumpless_get_wel_insertion_paramstumpless_get_wel_insertion_string_wstumpless_get_wel_typestumpless_remove_default_wel_event_sourcestumpless_remove_wel_event_sourcestumpless_remove_wel_event_source_wstumpless_set_wel_insertion_string_wstumpless_set_wel_insertion_strings_wvstumpless_set_wel_insertion_strings_w
STUMPLESS_OPTION_CONSis now supported with similar semantics toLOG_CONSfromsyslog.h.- The procid and hostname can be overriden if the defaults are not wanted, via
the functions:
stumpless_get_entry_hostnamestumpless_get_entry_procidstumpless_set_entry_hostnamestumpless_set_entry_procid
- Other new functions:
stumpless_get_network_protocolstumpless_get_target_type_stringstumpless_get_transport_protocol
Changed
- Auto-generated local socket names use abstract socket names if supported.
- Auto-generated local socket names are always
stumpless-socketinstead of being generated usingmkstemp.
Fixed
stumpless_perrorsegmentation faults after the following errors:STUMPLESS_FILE_OPEN_ERRORSTUMPLESS_FILE_WRITE_ERRORSTUMPLESS_INVALID_IDSTUMPLESS_MEMORY_ALLOCATION_FAILURESTUMPLESS_NETWORK_PROTOCOL_UNSUPPORTEDSTUMPLESS_STREAM_WRITE_FAILURESTUMPLESS_TRANSPORT_PROTOCOL_UNSUPPORTEDSTUMPLESS_WINDOWS_EVENT_LOG_CLOSE_FAILURESTUMPLESS_WINDOWS_EVENT_LOG_OPEN_FAILURE
- Several memory leaks:
- Object cache leak in some allocation failure scenarios
- Creating network target with unsupported protocols
closesyscall is no longer called on invalid socket handles- TCP network targets do not hang when the session is closed by the receiver.