stump v1.7.0 Stump

Stump allows for Maps and Strings to be passed into the Elixir Logger and return logs in the JSON format.

Link to this section Summary

Functions

The log method formats your given error message whether it be a Map or a String then passes it to Elixirs own Logger

Link to this section Functions

Link to this function

log(level, data, metadata \\ [])

The log method formats your given error message whether it be a Map or a String then passes it to Elixirs own Logger.

Usage for the module is as follows:

Stump.log(level, message)

The level can be any of four :debug/:info/:warn/:error

Message can be either a String or Map

  Stump.log(:error, 'Error Logged')
  {'message':'Error Logged','level':'error','datetime':'2019-03-06T12:21:52.661587Z'}
Link to this function

metadata(keyword)