celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Broekhuis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CELIX-115) logservice bundle entries list grows indefinitely
Date Sun, 18 Jan 2015 18:26:34 GMT

    [ https://issues.apache.org/jira/browse/CELIX-115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14281891#comment-14281891
] 

Alexander Broekhuis commented on CELIX-115:
-------------------------------------------

I propose to add a configuration property to specify how large this buffer should be. Besides
that it might make sense (as Apache Felix does) to enable/disable debug logging.

So that gives 2 properties (blatantly copied from Felix and adjusted to Celix):
* CELIX_LOG_MAX_SIZE
  Default 100	
  The maximum size of the log history. A value of -1 means the log has no maximum size; a
value of 0 means that no historical information is maintained
* CELIX_LOG_STORE_DEBUG
  Default false	
  Determines whether or not debug messages will be stored in the history

> logservice bundle entries list grows indefinitely
> -------------------------------------------------
>
>                 Key: CELIX-115
>                 URL: https://issues.apache.org/jira/browse/CELIX-115
>             Project: Celix
>          Issue Type: Improvement
>          Components: Log Service
>    Affects Versions: 1.0.0-incubating
>            Reporter: Gabriele Ricciardi
>
> Log entries list (log->entries) grows indefinitely, since every call to log_addEntry
function simply add an element to log->entries. This can be a problem on long run sessions.
Maybe it should be implemented as a circular list with a fixed number of entries?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message