github.com/komem3/logplug (go): Package logplug implements a plug of standard logging package. This package enables json output, level logging and so on to standard logger.  Plug implements io.Writer. Therefore, Plug can be specified as the output destination of log. Plug converts the output of log to the following format.  Pass the converted map to the encoder as an argument. Therefore, you can change the output format of log by the encoder of Plug.  Use prefix if you want to use the log to include custom fields. Custom fields set the values in [] as key and value.  You can use SetPrefix to set fields that are common to all logs.  It supports hooks before encoding. Hooks allow level logging, field changes and so on.
Keywords: go|golang|log|logging