Log v0.8.1 Log.Config View Source

Provides a datastructure to configure Log

Link to this section Summary

Link to this section Types

Link to this type

color_opts()

View Source
color_opts() :: %{optional(Log.Level.t()) => Log.Color.t()}
Link to this type

exclude_namespaces_opts()

View Source
exclude_namespaces_opts() :: [module()]
Link to this type

module_alias_opts()

View Source
module_alias_opts() :: Log.ModuleAlias.t()
Link to this type

t()

View Source
t() :: %Log.Config{
  colors: %{optional(Log.Level.t()) => Log.Color.t()},
  exclude_namespaces: [module()],
  module_alias: Log.ModuleAlias.t()
}

Link to this section Functions

Link to this function

build(opts \\ [])

View Source
build(
  opts :: [
    colors: color_opts(),
    module_alias: module_alias_opts(),
    exclude_namespaces: exclude_namespaces_opts()
  ]
) :: t()
Link to this function

get_color(config, level)

View Source
get_color(config :: t(), level :: Log.Level.t()) :: Log.Color.t()