Skip to content

Cannot apply changes a logging implementation at some class #1272

Closed
@kazuki43zoo

Description

@kazuki43zoo

MyBatis version

3.4.6 (Probably all versions)

Database vendor and version

Any

Test case or example project

None

Steps to reproduce

  1. Change to JKD14 as follow:
sqlSessionFactory.getConfiguration().setAutoMappingUnknownColumnBehavior(AutoMappingUnknownColumnBehavior.WARNING);
sqlSessionFactory.getConfiguration().setLogImpl(Jdk14LoggingImpl.class); // Change to JDK14
  1. Run an application

Expected result

Output a log using the logger of JDK14(via specified log implementation).

Actual result

But output a log using the logger of SLF4J(In my application, SLF4J's provider is log4j). this changes cannot apply to some class.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions