Spandex v1.2.5 Spandex.Logger View Source

Passes arguments on to the default logger, but wraps those calls in spans. When functions are provided, it wraps those functions in spans as well.

Link to this section Summary

Link to this section Functions

Link to this macro debug(resource, chardata_or_fun, metadata \\ []) View Source (macro)

Mirrors calls to Logger.debug/2, but spans the calls

The first argument: resource, is used to aggregate the data in trace tools, and sets the resource of the span. This also prepends the resource passed in to the message of your logs. This is made inexpensive by use of iolists, as opposed to actual string appending operations.

Link to this macro error(resource, chardata_or_fun, metadata \\ []) View Source (macro)

Mirrors calls to Logger.error/2, but spans the calls

The first argument: resource, is used to aggregate the data in trace tools, and sets the resource of the span. This also prepends the resource passed in to the message of your logs. This is made inexpensive by use of iolists, as opposed to actual string appending operations.

Link to this macro info(resource, chardata_or_fun, metadata \\ []) View Source (macro)

Mirrors calls to Logger.info/2, but spans the calls

The first argument: resource, is used to aggregate the data in trace tools, and sets the resource of the span. This also prepends the resource passed in to the message of your logs. This is made inexpensive by use of iolists, as opposed to actual string appending operations.

Link to this macro warn(resource, chardata_or_fun, metadata \\ []) View Source (macro)

Mirrors calls to Logger.warn/2, but spans the calls

The first argument: resource, is used to aggregate the data in trace tools, and sets the resource of the span. This also prepends the resource passed in to the message of your logs. This is made inexpensive by use of iolists, as opposed to actual string appending operations.