Re: sql logging
Re: sql logging
- Subject: Re: sql logging
- From: OC <email@hidden>
- Date: Sat, 07 Feb 2015 02:45:04 +0100
Ted,
if Timothy's advice does not help -- I bumped into similar problem lately (along with my weird “prepareForSaveWithCoordinator: Cannot save the object with globalID” problems /whose relatively unsurprising and rather sad results I'm about to write in a moment/), and haven't been able to log SQL whatever setting I used. Eventually I had to resort to code, and for me, this line
NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupSQLGeneration|NSLog.DebugGroupDatabaseAccess|NSLog.DebugGroupEnterpriseObjects)
makes the SQL log to appear all right.
Regret to say I do not really understand the mess -- just found it on the Web and tried out of desperation. YMMV.
All the best,
OC
On 6. 2. 2015, at 20:18, Theodore Petrosky <email@hidden> wrote:
> I have googled, searched the wiki, and tried everything I could think of, but I can not get my sql to log. In my properties:
>
> # ERExtensions
> # Transaction - Switching this to debug will start the sql ouputting.
> log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG
>
> still no SQL :-(
>
> I tried in the Launch Configuration Properties
>
> EOAdaptorDebugEnabled=true
>
> Please, I want to see my SQL.
>
> Ted
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >sql logging (From: Theodore Petrosky <email@hidden>) |