![]() ![]() info tag : :bar do "message" end # the message will have `tags: ` end # Tags can also be printed upon request tag : bar, include_tags : true def test2 do Scribble. Set multiple times to change the configuration (it doesn't accumulate): defmodule Foo do tag : :foo def test1 do Scribble. It's possible to set default tags through attribute, which can be error ( fn -> "four" end, tags : ) Scribble. debug tag : :hello, tags : do "two" end Scribble. trace do "one" end # The single tag will be prepended to `:tags`, so tags: Scribble. Log behaves the same way but has an additional argument at theīeginning of the signature which is the level as an atom. Supports the same arguments as Logger.log and the macros debug,Īll the functions can be invoked with the following arguments: Then, ensure :logger uses Scribble as backend: config :logger, backends : The package can be installed by adding scribble to your list ofĭependencies in mix.exs: def deps do end Thin wrapper around Elixir Logger, providing configurable logging
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |