View Source Bonny.Pluggable.Logger (bonny v1.4.0)

A pluggable step for logging basic action event information in the format:

{"NAMESPACE/OBJECT_NAME", API_VERSION, "Kind=KIND, Action=ACTION"}

Example:

{"default/my-object", "example.com/v1", "Kind=MyCustomResource, Action=:add"} - Processing event
{"default/my-object", "example.com/v1", "Kind=MyCustomResource, Action=:add"} - Applying status
{"default/my-object", "example.com/v1", "Kind=MyCustomResource, Action=:add"} - Emitting Normal event
{"default/my-object", "example.com/v1", "Kind=MyCustomResource, Action=:add"} - Applying descendant {"default/nginx", "apps/v1", "Kind=Deployment"}

To use it, just add a step to the desired module.

step Bonny.Pluggable.Logger, level: :debug

Options

  • :level - The log level at which this plug should log its request info. Default is :info. The list of supported levels is available in the Logger documentation.

Summary

Functions

Callback implementation for Pluggable.call/2.

Callback implementation for Pluggable.init/1.

Functions

Callback implementation for Pluggable.call/2.

Callback implementation for Pluggable.init/1.