cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgeny Ryabitskiy (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAY-1464) Improve QueryLogger to log more information
Date Sun, 01 Aug 2010 15:13:16 GMT

    [ https://issues.apache.org/jira/browse/CAY-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894386#action_12894386
] 

Evgeny Ryabitskiy commented on CAY-1464:
----------------------------------------

+ 1 for flexibility at this level.

Now we should think about what to path to this events, I mean some interface for it.

And I am still think that default Cayenne logger can be Improved without "incur much performance
overhead", to provide nice logging "out of box". That was patch about.

+ There could be several build-in loggers that could be "turned on" just by one simple option.

1) Default Logger
2) Formatted logger (move format issues here).
3) Some supper logger that could provide lot's of output.


> Improve QueryLogger to log more information
> -------------------------------------------
>
>                 Key: CAY-1464
>                 URL: https://issues.apache.org/jira/browse/CAY-1464
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>    Affects Versions: 3.1M1
>            Reporter: Evgeny Ryabitskiy
>            Assignee: Evgeny Ryabitskiy
>             Fix For: 3.1M1
>
>         Attachments: CAY-1464.patch
>
>
> Since I have to support lot's of applications using Cayenne and usually Cayenne logs
is only information I have about some bugs, I wish to have more information in that logs.
> I think it will be nice to have:
> 1) Information of query that was executed (e.g. name of NamedQuery). To find right query
in thousands...
> 2) Result of Select query.
> 3) As much information as it could be collected while logging errors.Like:  What query?
Params? What Query String was build? Connection pool State? Driver version? Cayenne version?
Better more than less.... 
> Last one can be very useful since on production I have only ERROR logging level. And
sometimes it is not possible to enable INFO level to find out what happen. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message