From ff0aaa7ccdf385d29b2fc09a95797fa7525137f6 Mon Sep 17 00:00:00 2001 From: falood Date: Sun, 12 Feb 2017 21:41:56 -0800 Subject: [PATCH] update docs --- lib/maxwell/middleware/logger.ex | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/maxwell/middleware/logger.ex b/lib/maxwell/middleware/logger.ex index 1eab7f2..3a440a3 100644 --- a/lib/maxwell/middleware/logger.ex +++ b/lib/maxwell/middleware/logger.ex @@ -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!