Packages

Library for making basic HTTP Calls

Current section

Files

Jump to
salt_log lib behaviour timber.ex
Raw

lib/behaviour/timber.ex

defmodule SaltLog.Behaviour.Timber do
@moduledoc """
Salt logging provider implementation
"""
@behaviour SaltLog
def add_context(context, value) do
Map.new()
|> Map.put(context, value)
|> Timber.add_context()
end
def get_context do
Timber.LocalContext.load()
end
end