Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions lib/logger/lib/logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,8 @@ defmodule Logger do
@doc """
Logs a warning.

Returns the atom `:ok` or an `{:error, reason}` tuple.

## Examples

Logger.warn "knob turned too far to the right"
Expand All @@ -481,6 +483,8 @@ defmodule Logger do
@doc """
Logs some info.

Returns the atom `:ok` or an `{:error, reason}` tuple.

## Examples

Logger.info "mission accomplished"
Expand All @@ -494,6 +498,8 @@ defmodule Logger do
@doc """
Logs an error.

Returns the atom `:ok` or an `{:error, reason}` tuple.

## Examples

Logger.error "oops"
Expand All @@ -506,6 +512,8 @@ defmodule Logger do

@doc """
Logs a debug message.

Returns the atom `:ok` or an `{:error, reason}` tuple.

## Examples

Expand All @@ -519,6 +527,8 @@ defmodule Logger do

@doc """
Logs a message.

Returns the atom `:ok` or an `{:error, reason}` tuple.

Developers should use the macros `Logger.debug/2`,
`Logger.warn/2`, `Logger.info/2` or `Logger.error/2` instead
Expand Down