Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
falood committed Feb 13, 2017
1 parent 557abea commit ff0aaa7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/maxwell/middleware/logger.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@ defmodule Maxwell.Middleware.Logger do
# Client.ex
use Maxwell.Builder ~(get)a
@middleware Maxwell.Middleware.Log [log_level: :debug]
middleware Maxwell.Middleware.Logger, log_level: :debug
middleware Maxwell.Middleware.Logger, log_level: [
info: [1..100, 200..299, 404],
warn: 300..399,
error: :default
]
def request do
"/test" |> url |> get!
Expand Down

0 comments on commit ff0aaa7

Please sign in to comment.