Happy to hear you found a solution. So which version of Cayenne are you on?

> On Nov 13, 2024, at 12:36 AM, Markus Reich <reich.mar...@gmail.com> wrote:
> 
> Thanks for the hint, but the main problem was caused by the slf4
> dependencies.
> After removing these
> 
> <dependency>
> 
> <groupId>org.slf4j</groupId>
> 
> <artifactId>slf4j-api</artifactId>
> 
> <version>${slf4j.version}</version>
> 
> </dependency>
> 
> 
> <dependency>
> 
> <groupId>org.slf4j</groupId>
> 
> <artifactId>slf4j-reload4j</artifactId>
> 
> <version>${slf4j.version}</version>
> 
> </dependency>
> 
> 
> <dependency>
> 
> <groupId>org.slf4j</groupId>
> 
> <artifactId>jul-to-slf4j</artifactId>
> 
> <version>${slf4j.version}</version>
> 
> </dependency>
> 
> the logs were written
> 
> 
> Thanks
> 
> Meex
> 
> Am Di., 12. Nov. 2024 um 22:56 Uhr schrieb Andrus Adamchik <
> aadamc...@gmail.com>:
> 
>> Hi Markus,
>> 
>>> <Logger name="org.apache.cayenne.access.QueryLogger" level="INFO">
>> 
>> In all latest Cayenne versions (starting with 3.1), the name of the logger
>> should be "org.apache.cayenne.log.JdbcEventLogger".
>> 
>> Thanks,
>> Andrus
>> 
>> 
>>> On Nov 12, 2024, at 1:20 AM, Markus Reich <reich.mar...@gmail.com>
>> wrote:
>>> 
>>> Hi,
>>> 
>>> I switched from log4j properties file configuration to log4j2 xml
>>> configuration, and now I didn't get the query logs running :-(
>>> 
>>> here are the dependencies concerning logging frameworks
>>> 
>>> <dependency>
>>> 
>>> <groupId>org.slf4j</groupId>
>>> 
>>> <artifactId>slf4j-api</artifactId>
>>> 
>>> <version>${slf4j.version}</version>
>>> 
>>> </dependency>
>>> 
>>> 
>>> <dependency>
>>> 
>>> <groupId>org.slf4j</groupId>
>>> 
>>> <artifactId>slf4j-reload4j</artifactId>
>>> 
>>> <version>${slf4j.version}</version>
>>> 
>>> </dependency>
>>> 
>>> 
>>> <dependency>
>>> 
>>> <groupId>org.slf4j</groupId>
>>> 
>>> <artifactId>jul-to-slf4j</artifactId>
>>> 
>>> <version>${slf4j.version}</version>
>>> 
>>> </dependency>
>>> 
>>> <dependency>
>>> 
>>> <groupId>org.apache.logging.log4j</groupId>
>>> 
>>> <artifactId>log4j-core</artifactId>
>>> 
>>> <version>${log4j.version}</version>
>>> 
>>> </dependency>
>>> 
>>> <dependency>
>>> 
>>> <groupId>org.apache.logging.log4j</groupId>
>>> 
>>> <artifactId>log4j-api</artifactId>
>>> 
>>> <version>${log4j.version}</version>
>>> 
>>> </dependency>
>>> 
>>> <dependency>
>>> 
>>> <groupId>org.apache.logging.log4j</groupId>
>>> 
>>> <artifactId>log4j-slf4j2-impl</artifactId>
>>> 
>>> <version>${log4j.version}</version>
>>> 
>>> </dependency>
>>> 
>>> and my log4j config
>>> 
>>> <?xml version="1.0" ?>
>>> 
>>> <Configuration name="Log4j1">
>>> 
>>> <Appenders>
>>> 
>>> <Console name="stdout" target="SYSTEM_OUT">
>>> 
>>> <PatternLayout pattern="%d %-5Level [%c]: %m%n" />
>>> 
>>> </Console>
>>> 
>>> </Appenders>
>>> 
>>> <Loggers>
>>> 
>>> <Root level="ERROR">
>>> 
>>> <AppenderRef ref="stdout" />
>>> 
>>> <AppenderRef ref="logfile" />
>>> 
>>> </Root>
>>> 
>>> <Logger name="org.apache.cayenne.access.QueryLogger"
>>> 
>>> level="INFO">
>>> 
>>> <AppenderRef ref="stdout" />
>>> 
>>> </Logger>
>>> 
>>> </Loggers>
>>> 
>>> </Configuration>
>>> may somebody has a hint for me?`
>>> 
>>> Best regards
>>> 
>>> Meex
>>> reich.mar...@gmail.com
>> 
>> 
> 
> -- 
> *Markus Reich*
> Waldweg 62
> 6393 St. Ulrich am Pillersee
> reich.mar...@gmail.com

Reply via email to