[logback-dev] [JIRA] Commented: (LBCLASSIC-198) DBAppender: Support long event_id values in logging_event
Michael Lynch
adoptablecoho at gmail.com
Mon Mar 22 21:13:34 CET 2010
It is mostly out of caution with some amount of fatalism mixed in.
We are working with a distributed databases that is synchronized back
to a central database. In order to avoid key collisions we are
partitioning the key space. We may have as many as 100 remote
databases - reducing the key space for any one to ~21million.
While I don't expect 21 million errors from a single instance (nor
even all together), there are processes that can run every few seconds
that can generate an error. Left unchecked/unnoticed for long enough
and the volume of errors could add up over time.
In my experience there is very little memory or disk space issues
created by using a long instead of an int - although I recognize that
logback is used in many different ways/environments, so my experience
may not be as accurate in the context of logback.
- Michael
On Mon, Mar 22, 2010 at 12:52 PM, Ceki Gulcu (JIRA) <noreply-jira at qos.ch> wrote:
>
> [ http://jira.qos.ch/browse/LBCLASSIC-198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11662#action_11662 ]
>
> Ceki Gulcu commented on LBCLASSIC-198:
> --------------------------------------
>
> In java 'int' is 32 bits, ranging from approx -2Billion to 2billion. Why would you ever want 'long' (64bit) event_id values?
>
>> DBAppender: Support long event_id values in logging_event
>> ---------------------------------------------------------
>>
>> Key: LBCLASSIC-198
>> URL: http://jira.qos.ch/browse/LBCLASSIC-198
>> Project: logback-classic
>> Issue Type: Improvement
>> Components: appender
>> Affects Versions: 0.9.18
>> Reporter: Michael Lynch
>> Assignee: Logback dev list
>> Attachments: DBAppender.java, DBAppenderBase.java
>>
>>
>> Want to retain longer history of logging events.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
> _______________________________________________
> logback-dev mailing list
> logback-dev at qos.ch
> http://qos.ch/mailman/listinfo/logback-dev
>
More information about the logback-dev
mailing list