Releases: pcktdmp/cef
Releases · pcktdmp/cef
Refactored and deprecation of Generate()
Introduced:
Validate() error // Validate if the CEF message is according to the specification.
String() (string, error) // String constructs and returns a CEF message string.
Build() (CefEvent, error) // Build constructs and returns a CEF message according to CefEvent.
Read(line string) (CefEvent, error) // Read parses a CEF message string and populates the CefEvent struct with the extracted data.
Log() error // Log attempts to generate a CEF message from the current CefEvent and logs it to the standard output.
escapeEventData() error // escapeEventData will try to escape all data properly in the struct according the Common Event Format.
What's Changed
Full Changelog: v0.3.0...v0.4.0
Support reading CEF events from a line
What's Changed
- Fix example by @Saggiehaim in #28
- Read CEF events from a line by @pcktdmp in #29
New Contributors
- @Saggiehaim made their first contribution in #28
Full Changelog: v0.2.0...v0.3.0
Set default CEF version number and convert to int according to specification
v0.2.0 Set default CEF version number and convert to int according to specif…
Move to Go 1.14 and add go.sum
Add go.sum (#26) * Add go.sum
Initial minor release
Supported features:
- Generating a CEF event from public struct
- CefEventer Interface{}
- Log() method to generate a log message to stdout
- Validate() to verify if mandatory CEF fields are set
- Handling escaping characters according to the CEF format
Support predictable key/value pair sequence for the CEF Extensions
v0.0.5 Update example code in README (#23)
Support logging the CEF event to stdout with Log()
Support logging the CEF event to stdout which is particularly useful when being ran inside a container
and/or being used in conjunction with go routines.
https://stackoverflow.com/questions/19646889/why-should-i-use-log-println-instead-of-fmt-println
Introduce Interface Type CefEventer
Introduce an interface that implements Generate() and Validate()
Improved checking for mandatory CEF fields
v0.0.2 Loop over mandatory fields and verify their content (#15)
Initial release
v0.0.1 Simple input checking for event generation (#14)