From 858855712a8e060721db6489644ff8c49ed8041e Mon Sep 17 00:00:00 2001 From: fengzero Date: Mon, 28 Nov 2022 07:58:47 +0000 Subject: [PATCH] log to stdout with category --- dev.conf | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dev.conf b/dev.conf index c68189e8..c627f81e 100644 --- a/dev.conf +++ b/dev.conf @@ -4,9 +4,10 @@ file perms = 666 [formats] -simple = "%d [%V] [%c] %f:%L %m%n" +stdout_format = "%d [%V] [%c] %f:%L %m%n" +file_format = "%d [%V] %f:%L %m%n" [rules] -*.* "./logs/%c.log", 10MB * 3 ~ "./logs/%c.#2s.log"; simple -*.* >stdout; simple +*.* "./logs/%c.log", 10MB * 3 ~ "./logs/%c.#2s.log"; file_format +*.* >stdout; stdout_format