Logger.alert
You're seeing just the macro
alert
, go back to Logger module for more information.
Logs a alert message.
Returns :ok
.
This is reported as "error" in Elixir's logger backends for backwards compatibility reasons.
Examples
Logging a message (string or iodata):
Logger.alert("this is a alert message")
Report message (maps or keywords):
# as keyword list
Logger.alert([something: :reported, this: :alert])
# as map
Logger.alert(%{something: :reported, this: :alert})