HI

its good job,I suggest that we start by using LogUtils.

thanks

翟伟 <[email protected]> 于2021年6月9日周三 下午1:14写道:

> Hi,Logback has been used in the Shenyu project to record logs, and slf4j
> has not been maintained for a long time. I think I can replace these with
> `LogUtils`
>
>
>
>
> On 06/2/2021 15:36,XiaoYu<[email protected]> wrote:
> Hi Community
>
> It is very appropriate to use the delayed nature of lambda expressions to
> print logs.
>
> If we should print logs, like this : `log.error("hello world"); `
>
> If log level not config is ERROR,  This `Java String` is a loss to the
> program.
>
> Now if we used lambda expressions, like this : `log.error(() -> "hello
> world ")`
>
> It will only output if the log config is ERROR.
>
> Based on the above considerations, I created
> `org.apache.shenyu.common.utils.LogUtils`
>
> This `LogUtils`  use lambda expressions to print logs.
>
> In the shenyu project, should we use it all for printing logs?
>
> Looking forward to your suggestions!
>
> Thanks!
>

Reply via email to