The context handler logs to the root logger by default. Logs can be sent to a custom logger by passing a logger object as a keyword argument. Use `configure_logging` method for ska formatted logs.
The context handler logs to the local logger by default. Logs can be sent to a custom logger by passing a logger object as a keyword argument. Use `configure_logging` method for ska formatted logs.
**Example ska formatted logs for successful transaction**
Log message formats:
- On Entry:
- Transaction[id]: Enter[name] with parameters [arguments]
- Transaction[id]: Enter[name] with parameters [arguments] marker[marker]
- On Exit:
- Transaction[id]: Exit[name]
- Transaction[id]: Exit[name] marker[marker]
- On exception:
- Transaction[id]: Exception[name]
- Transaction[id]: Exception[name] marker[marker]
-- Stacktrace --
The marker can be used to match entry/exception/exit log messages.
```txt
1|2020-09-22T11:43:22.760Z|INFO|Dummy-1|__enter__|transactions.py#124|tango-device:log/test/upstream|Transaction [txn-local-20200922-232544376]: Enter[CallWithContext] with parameters[{"ArgKey2": "ArgVal2"}]