Scripts & Automation
Events can be logged from the command-line using the Seq command-line client, seqcli
.
The seqcli
client is included with Seq on Windows, and can be downloaded for macOS and Linux from GitHub releases.
seqcli log -m 'Hello, {Name}!' -p Name=World
The seqcli log
command supports the following options:
Option | Description |
---|---|
-m , --message=VALUE | A message to associate with the event (the default is to send no message); https://messagetemplates.org syntax is supported |
-l , --level=VALUE | The level or severity of the event (the default is Information ) |
-t , --timestamp=VALUE | The event timestamp as ISO-8601 (the current UTC timestamp will be used by default) |
-x , --exception=VALUE | Additional exception or error information to send, if any |
-p , --property=NAME=VALUE | Specify name/value properties, e.g. -p Customer=C123 -p Environment=Production |
-s , --server=VALUE | The URL of the Seq server; by default the connection.serverUrl config value will be used |
-a , --apikey=VALUE | The API key to use when connecting to the server; by default the connection.apiKey config value will be used |
--profile=VALUE | A connection profile to use; by default the connection.serverUrl and connection.apiKey config values will be used |
Updated about 1 year ago
What’s Next