Recent Releases of stumpless
stumpless - v2.2.0
Added
@sinceformat check enforcement in CI pipeline.single-filetarget for rollup.cand.hfiles.- SQLite3 logging targets.
- Target chains.
- Support for
pkg-config. INSTALL_HEADERSandINSTALL_HTMLbuild options.- Localizations for:
- Albanian (sq-AL :albania:)
- Danish (da-DK :denmark:)
- Hebrew (he-IL :israel:)
- Hungarian (hu-HU :hungary:)
- Japanese (ja-JP :jp:)
- Sinhala (si-LK :sri_lanka:)
- Swahili (sw-KE :kenya:)
- Teluga (te-IN :india:)
- Turkish (tr-TR :tr:)
Fixed
- Deadlock potential in
stumpless_set_entry_hostnameandstumpless_set_entry_procidwhen validation fails. - Builds in ANSI C environments.
sys/socket.h-based TCP network targets will immediately fail with an error if the remote end sends a FIN message, instead of waiting forsendto fail, possibly sending messages that are not actually received by the remote end.
- C
Published by goatshriek over 1 year ago
stumpless - 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.
- C
Published by goatshriek about 3 years ago
stumpless - v2.0.0
Added
- Localization framework for error messages and other library strings, and
localizations for:
- French (fr-FR :fr:)
- German (de-DE :de:)
- Italian (it-IT :it:)
- Slovak (sk-SK :slovakia:)
- Swedish (sv-SE :sweden:)
- Thread safety for all functionality.
- The following functions:
stumpless_free_threadstumpless_get_element_countstumpless_get_target_namestumpless_get_target_default_app_namestumpless_get_target_default_msgidstumpless_param_to_stringstumpless_read_buffer- The following C++ function bindings:
Entry.GetAppNameEntry.GetMessageEntry.GetMsgidVersion.Compare
Changed
- C++ namespace from
stumplesscpptostumpless. - Including
stumpless/config.hno longer definesWIN32_LEAN_AND_MEAN. - Facilities, options, and severities are now only available in the
stumpless/facility.h,stumpless/option.h, andstumpless/severity.hheaders, respectively. - Functions that return strings now require the caller to free the string
when it is no longer needed. Prior to this version these strings pointed
to internal character buffers that could not be modified. The functions
affected by this are:
stumpless_get_element_namestumpless_get_entry_app_namestumpless_get_entry_messagestumpless_get_entry_msgidstumpless_get_entry_param_value_by_indexstumpless_get_entry_param_value_by_namestumpless_get_param_namestumpless_get_param_name_by_indexstumpless_get_param_valuestumpless_get_param_value_by_indexstumpless_get_param_value_by_name
- The underlying buffer in buffer targets should no longer be read manually,
but should instead use the new
stumpless_read_bufferfunction as the only way to read messages. - All target open functions no longer require an options or default facility
parameter, resulting in much more concise code. If either of these fields
need to be adjusted on a target, use the
stumpless_set_optionandstumpless_set_default_facilityfunctions after the target has been created. - Facilities and severities are now
enums instead of preprocessor symbols.
Deprecated
stumpless_destroy_entryhas been deprecated in favor of the more descriptive and deliberatestumpless_destroy_entry_and_contentsandstumpless_destroy_entry_onlyfunctions in order to avoid unintentional memory leaks and use-after-free mistakes.stumpless_destroy_elementhas been deprecated in favor of the more descriptive and deliberatestumpless_destroy_element_and_contentsandstumpless_destroy_element_onlyfunctions in order to avoid unintentional memory leaks and use-after-free mistakes.
Fixed
- Memory leak in opening of network targets on systems using
sys/socket.hfor network services.
Removed
stumplessandvstumplessfunctions (usestumpandvstumpinstead).STUMPLESS_SEVERITY_WARNsymbol.
- C
Published by goatshriek almost 5 years ago
stumpless - v1.6.0
Added
- A number of new functions for working with entries, elements, and params.
- A rollup header,
stumpless.hpp, for the C++ library to make use easier. - Logging functions that can be removed at compile time.
Fixed
- Added missing DLL exports of C++ library in standard Visual Studio builds.
- Local socket names are generated using mkstemp instead of using a static counter (issue #54).
- The current target is not left pointing at an invalid target structure after the current target is closed (issue #52).
- C
Published by goatshriek over 5 years ago