File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -468,6 +468,8 @@ defmodule Logger do
468
468
@ doc """
469
469
Logs a warning.
470
470
471
+ Returns the atom `:ok` or an `{:error, reason}` tuple.
472
+
471
473
## Examples
472
474
473
475
Logger.warn "knob turned too far to the right"
@@ -481,6 +483,8 @@ defmodule Logger do
481
483
@ doc """
482
484
Logs some info.
483
485
486
+ Returns the atom `:ok` or an `{:error, reason}` tuple.
487
+
484
488
## Examples
485
489
486
490
Logger.info "mission accomplished"
@@ -494,6 +498,8 @@ defmodule Logger do
494
498
@ doc """
495
499
Logs an error.
496
500
501
+ Returns the atom `:ok` or an `{:error, reason}` tuple.
502
+
497
503
## Examples
498
504
499
505
Logger.error "oops"
@@ -506,6 +512,8 @@ defmodule Logger do
506
512
507
513
@ doc """
508
514
Logs a debug message.
515
+
516
+ Returns the atom `:ok` or an `{:error, reason}` tuple.
509
517
510
518
## Examples
511
519
@@ -519,6 +527,8 @@ defmodule Logger do
519
527
520
528
@ doc """
521
529
Logs a message.
530
+
531
+ Returns the atom `:ok` or an `{:error, reason}` tuple.
522
532
523
533
Developers should use the macros `Logger.debug/2`,
524
534
`Logger.warn/2`, `Logger.info/2` or `Logger.error/2` instead
You can’t perform that action at this time.
0 commit comments