mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-09 00:16:46 +00:00
**What** - journald log provider using exec to journalctl ``` journalctl -t <namespace>:<name> --output=json --since=<timestamp> <--follow> --output-fields=SYSLOG_IDENTIFIER,MESSAGE,_PID,_SOURCE_REALTIME_TIMESTAMP ``` - This can be tested manually using `faas-cli logs` as normal, e.g. `faas-cli logs nodeinfo` should tail the last 5 mins of logs. - Very basic tests ensuring that the `journalctl` comamand is correctly construction and that the json log entrys are parsed correctly. - Add simple e2e test to grep the function logs Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
7 lines
138 B
Go
7 lines
138 B
Go
package pkg
|
|
|
|
const (
|
|
// FunctionNamespace is the default containerd namespace functions are created
|
|
FunctionNamespace = "openfaas-fn"
|
|
)
|