stale-greece-87479
06/09/2023, 4:30 PMchilly-king-10285
06/09/2023, 4:30 PMchilly-king-10285
06/09/2023, 4:32 PMapplication
logs and audit
logs. Application logs are intended for operators and developers, while audit logs document allowed and denied authorizations, failed and succeeded login attempts, and so on. Here's an example of both types of logs: time=2020-05-20T11:57:09+02:00 level=info msg=An example log message. audience=application service_name=foo service_version=bar time=2020-05-20T11:57:29+02:00 level=info msg=Login successful. audience=audit service_name=foo service_version=bar
Additionally, if LOG_LEVEL=trace
, traces will be included for log calls and errors. Here's an example of a trace: { "audience": "application", "error": { "message": "example error", "trace": "\<http://ngithub.com/ory/x/logrusx.TestErrorTrace.func1|ngithub.com/ory/x/logrusx.TestErrorTrace.func1>\n\t/Users/foobar/go/src/github.com/ory/x/logrusx/logrus_test.go:52\nnet/http.HandlerFunc.ServeHTTP\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2012\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:2807\nnet/http.(*conn).serve\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/net/http/server.go:1895\nruntime.goexit\n\t/usr/local/Cellar/go/1.14.2_1/libexec/src/runtime/asm_amd64.s:1373" }, "file": "/Users/user/go/src/github.com/ory/x/logrusx/logrus_test.go:52", "func": "<http://github.com/ory/x/logrusx.TestErrorTrace.func1|github.com/ory/x/logrusx.TestErrorTrace.func1>", "level": "error", "msg": "I am an example error", "service_name": "foo", "service_version": "bar", "time": "2020-05-20T12:13:53+02:00" }
For more information on logs and audit trails in Ory Network, refer to the [Ory documentation](https://www.ory.sh/docs/self-hosted/operations/logging).stale-greece-87479
06/09/2023, 4:33 PMchilly-king-10285
06/09/2023, 4:33 PMchilly-king-10285
06/09/2023, 4:34 PMmagnificent-energy-493
stale-greece-87479
06/19/2023, 5:52 AM