Of course, thanks. Works!
> Am 16.02.2017 um 21:22 schrieb John Huss <[email protected]>:
>
> Use the log4j api. Something like RootLogger.getLogger("org.apache.cayenn
> e.access.QueryLogger").setLevel(Level.INFO)
>
> On Thu, Feb 16, 2017 at 2:53 PM Musall, Maik <[email protected]> wrote:
>
>> Hi all,
>>
>> like recommended in
>> https://cayenne.apache.org/docs/3.0/configuring-logging.html, I use these
>> properties to control the logging of SQL:
>>
>> log4j.logger.org.apache.cayenne.access.QueryLogger = WARN
>> log4j.logger.org.apache.cayenne = WARN
>>
>> How would I switch SQL logging on from within the application at runtime?
>>
>> Thanks
>> Maik
>>
>>