Constructor
new LEEF(optionsopt)
Construct a new LEEF formatting object with user options
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
Options object
Properties
|
Requires:
- module:moment
Requires
- module:moment
Members
attributes :object
Type:
- object
(private) constructor__
eventId :string
Type:
- string
product :string
Type:
- string
(private) server
syslogHeader :boolean
Type:
- boolean
vendor :string
Type:
- string
version :string
Type:
- string
Methods
buildMessage() → {Promise}
Build a formatted message
Returns:
- string with formatted message
- Type
- Promise
send(optionsopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
Syslog |
<optional> |
false
|
A Syslog server connection that should be used to send messages directly from this class. @see SyslogPro~Syslog |