Log v0.9.0 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 Sourcecolor_opts() :: %{optional(Log.Level.t()) => Log.Color.t()}
Link to this type
t()
View Sourcet() :: %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 Sourcebuild(
opts :: [
colors: color_opts(),
module_alias: module_alias_opts(),
exclude_namespaces: exclude_namespaces_opts()
]
) :: t()
Link to this function
get_color(config, level)
View Sourceget_color(config :: t(), level :: Log.Level.t()) :: Log.Color.t()