Re: Cayenne 4.1.RC2 Logging

Andrus Adamchik <[email protected]>
Newsgroups gmane.comp.java.cayenne.devel
Message-ID <[email protected]>
Another thing that may be missing in Markus's setup is a logger implementation binding. SLF4J is just a proxy to another logger after all. So if you imported "slf4j-simple", remove that import, and import the actual logger impl. E.g. Logback (John's example is based on Log4J - yet another popular logger):

<dependency>
   <groupId>ch.qos.logback</groupId>
   <artifactId>logback-classic</artifactId>
</dependency>

SLF4J discovers it automatically and you'll be able to control log levels per Logback documentation [1] (or Log4J if you decided to use that).

Andrus

[1] http://logback.qos.ch/manual/index.html 


> On Oct 30, 2019, at 6:14 PM, John Huss <[email protected]> wrote:
> 
> log4j.logger.org.apache.cayenne.log.JdbcEventLogger=INFO
> 
> On Wed, Oct 30, 2019 at 2:32 AM Markus Reich <[email protected]> wrote:
> 
>> Hi,
>> 
>> since the move to slf4j I'm not able to control the log level anymore. As I
>> couldn't find any documentation, my last hope is the community :-)
>> 
>> I'm no logging expert :-/
>> 
>> best regards
>> Meex
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.