Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the logging modules in MyBatis

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about what log modules there are in MyBatis, which may not be well understood by many people. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

The package where the log function code is located

Org.apache.ibatis.logging

Loading order of the log module

Mybatis does not have its own log module. It uses third-party logs (there are also jdk's own logs). The loading order of slf4J → commonsLoging → Log4J2 → Log4J → JdkLog

Related code

Declare the load order in a static code block

Public final class LogFactory {/ / the constructor method private static Constructor of the selected third-party log component adapter

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report