[jira] [Updated] (LOG4J2-510) How to close inactive log files

2014-01-30 Thread Eric (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4J2-510?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric updated LOG4J2-510:


Issue Type: Bug  (was: Documentation)

 How to close inactive log files
 ---

 Key: LOG4J2-510
 URL: https://issues.apache.org/jira/browse/LOG4J2-510
 Project: Log4j 2
  Issue Type: Bug
  Components: Appenders
Affects Versions: 2.0-beta9
 Environment: linux
Reporter: Eric
  Labels: performance
 Fix For: 2.0-beta9


 Hi There,
 in log4j2 when the App start logging it create and open a file to log into 
 and that file stay open as long as the App is running.
 in my case log4j2 create and open too many files base on ThreadContext and 
 the OS (linux) will complaint that too many files are open and my App will 
 crash and stop responding.
 My question is:
  1 -  how do you close those files with log4j2 if they are inactive for a 
 period of time.
  2 - How do you have access to the log4j2 handle that open those files.
  3 - How do you tell log4j2 to open a file just for a period of time.
 Thanks
 Eric



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org



[jira] [Created] (LOG4J2-510) How to close inactive log files

2014-01-24 Thread Eric (JIRA)
Eric created LOG4J2-510:
---

 Summary: How to close inactive log files
 Key: LOG4J2-510
 URL: https://issues.apache.org/jira/browse/LOG4J2-510
 Project: Log4j 2
  Issue Type: Documentation
  Components: Appenders
Affects Versions: 2.0-beta9
 Environment: linux
Reporter: Eric
 Fix For: 2.0-beta9


Hi There,
in log4j2 when the App start logging it create and open a file to log into and 
that file stay open as long as the App is running.
in my case log4j2 create and open too many files base on ThreadContext and the 
OS (linux) will complaint that too many files are open and my App will crash 
and stop responding.
My question is:
 1 -  how do you close those files with log4j2 if they are inactive for a 
period of time.
 2 - How do you have access to the log4j2 handle that open those files.
 3 - How do you tell log4j2 to open a file just for a period of time.

Thanks
Eric



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org



[jira] [Closed] (LOG4J2-458) Filters configuration

2014-01-23 Thread Eric (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4J2-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric closed LOG4J2-458.
---

Resolution: Fixed

Hi Remko,
This issue is resolved
Thanks
Eric

 Filters configuration
 -

 Key: LOG4J2-458
 URL: https://issues.apache.org/jira/browse/LOG4J2-458
 Project: Log4j 2
  Issue Type: Question
  Components: Filters
Affects Versions: 2.0-beta9
 Environment: Eclipse on widows
Reporter: Eric
Priority: Minor
  Labels: newbie
 Fix For: 2.0-beta9

   Original Estimate: 0.5h
  Remaining Estimate: 0.5h

 Hi,
 Here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 I'm trying to get my filter to read and accept to log this line and I put 
 this in my configuration file:
 - MarkerFilter:
 {code}
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   MarkerFilter marker=INFO onMatch=ACCEPT 
 onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 {code}
 - RegexFilter:
 {code}
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   RegexFilter regex=.*myModule.* 
 onMatch=ACCEPT onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 {code}
 Base on my log line below How do I use:
 - DynamicThresholdFilter
 - ThresholdFilter
 - MapFilter
 - StructuredDataFilter
 here is my log line:
 {code}
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 {code}
 Please Help
 Thanks



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org



[jira] [Commented] (LOG4J2-458) Filters configuration

2014-01-23 Thread Eric (JIRA)

[ 
https://issues.apache.org/jira/browse/LOG4J2-458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13880790#comment-13880790
 ] 

Eric commented on LOG4J2-458:
-

Hi Remko,
This issue is resolved
Thanks
Eric

 Filters configuration
 -

 Key: LOG4J2-458
 URL: https://issues.apache.org/jira/browse/LOG4J2-458
 Project: Log4j 2
  Issue Type: Question
  Components: Filters
Affects Versions: 2.0-beta9
 Environment: Eclipse on widows
Reporter: Eric
Priority: Minor
  Labels: newbie
 Fix For: 2.0-beta9

   Original Estimate: 0.5h
  Remaining Estimate: 0.5h

 Hi,
 Here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 I'm trying to get my filter to read and accept to log this line and I put 
 this in my configuration file:
 - MarkerFilter:
 {code}
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   MarkerFilter marker=INFO onMatch=ACCEPT 
 onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 {code}
 - RegexFilter:
 {code}
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   RegexFilter regex=.*myModule.* 
 onMatch=ACCEPT onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 {code}
 Base on my log line below How do I use:
 - DynamicThresholdFilter
 - ThresholdFilter
 - MapFilter
 - StructuredDataFilter
 here is my log line:
 {code}
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 {code}
 Please Help
 Thanks



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: log4j-dev-h...@logging.apache.org



[jira] [Updated] (LOG4J2-458) Filters configuration

2013-11-29 Thread Eric (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4J2-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric updated LOG4J2-458:


Description: 
Hi,

Here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...
I'm trying to get my filter to read and accept to log this line and I put this 
in my configuration file:
- MarkerFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
MarkerFilter marker=INFO onMatch=ACCEPT 
onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile
- RegexFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
RegexFilter regex=.*myModule.* 
onMatch=ACCEPT onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter

here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...

Please Help
Thanks


  was:
Hi,

Here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...
I'm trying to get my filter to read and accept to log this line and I put this 
in my configuration file:
- MarkerFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
MarkerFilter marker=INFO onMatch=ACCEPT 
onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

- RegexFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
RegexFilter regex=.*myModule.* 
onMatch=ACCEPT onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter

here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...

Please Help
Thanks



 Filters configuration
 -

 Key: LOG4J2-458
 URL: https://issues.apache.org/jira/browse/LOG4J2-458
 Project: Log4j 2
  Issue Type: Question
  Components: Filters
Affects Versions: 2.0-beta9
 Environment: Eclipse on widows
Reporter: Eric
Priority: Minor
  Labels: newbie
 Fix For: 2.0-beta9

   Original Estimate: 0.5h
  Remaining Estimate: 0.5h

 Hi,
 Here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 I'm trying to get my filter to read and accept to log this line and I put 
 this in my configuration file:
 - MarkerFilter:
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   MarkerFilter marker=INFO onMatch=ACCEPT 
 onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 - RegexFilter:
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   RegexFilter regex=.*myModule.* 
 onMatch=ACCEPT onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 Base on my log line bellow How do I use:
 - DynamicThresholdFilter
 - ThresholdFilter
 - MapFilter
 - StructuredDataFilter
 here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 Please Help
 Thanks



--
This message was sent by Atlassian JIRA
(v6.1#6144)

-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: 

[jira] [Updated] (LOG4J2-458) Filters configuration

2013-11-29 Thread Eric (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4J2-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric updated LOG4J2-458:


Description: 
Hi,

Here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...
I'm trying to get my filter to read and accept to log this line and I put this 
in my configuration file:
- MarkerFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
MarkerFilter marker=INFO onMatch=ACCEPT 
onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

- I also tried RegexFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
RegexFilter regex=.*myModule.* 
onMatch=ACCEPT onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter

here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...

Please Help
Thanks


  was:
Hi,

Here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...
I'm trying to get my filter to read and accept to log this line and I put this 
in my configuration file:
MarkerFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
MarkerFilter marker=INFO onMatch=ACCEPT 
onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

I also tried RegexFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
RegexFilter regex=.*myModule.* 
onMatch=ACCEPT onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter

here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...

Please Help
Thanks



 Filters configuration
 -

 Key: LOG4J2-458
 URL: https://issues.apache.org/jira/browse/LOG4J2-458
 Project: Log4j 2
  Issue Type: Question
  Components: Filters
Affects Versions: 2.0-beta9
 Environment: Eclipse on widows
Reporter: Eric
Priority: Minor
  Labels: newbie
 Fix For: 2.0-beta9

   Original Estimate: 0.5h
  Remaining Estimate: 0.5h

 Hi,
 Here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 I'm trying to get my filter to read and accept to log this line and I put 
 this in my configuration file:
 - MarkerFilter:
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   MarkerFilter marker=INFO onMatch=ACCEPT 
 onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 - I also tried RegexFilter:
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   RegexFilter regex=.*myModule.* 
 onMatch=ACCEPT onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 Base on my log line bellow How do I use:
 - DynamicThresholdFilter
 - ThresholdFilter
 - MapFilter
 - StructuredDataFilter
 here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 Please Help
 Thanks



--
This message was sent by Atlassian JIRA
(v6.1#6144)

-
To unsubscribe, e-mail: 

[jira] [Updated] (LOG4J2-458) Filters configuration

2013-11-29 Thread Eric (JIRA)

 [ 
https://issues.apache.org/jira/browse/LOG4J2-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric updated LOG4J2-458:


Description: 
Hi,

Here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...
I'm trying to get my filter to read and accept to log this line and I put this 
in my configuration file:
- MarkerFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
MarkerFilter marker=INFO onMatch=ACCEPT 
onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

- RegexFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
RegexFilter regex=.*myModule.* 
onMatch=ACCEPT onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter

here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...

Please Help
Thanks


  was:
Hi,

Here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...
I'm trying to get my filter to read and accept to log this line and I put this 
in my configuration file:
- MarkerFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
MarkerFilter marker=INFO onMatch=ACCEPT 
onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile
- RegexFilter:

RollingFile name=LOGS_FILES fileName=txt.logs
filePattern=txt-%d{MM-dd-}.log.gz
RegexFilter regex=.*myModule.* 
onMatch=ACCEPT onMismatch=DENY/
PatternLayout
pattern%d: %6p : %t : %c{1} : %m%n/pattern
/PatternLayout
TimeBasedTriggeringPolicy /
/RollingFile

Base on my log line bellow How do I use:
- DynamicThresholdFilter
- ThresholdFilter
- MapFilter
- StructuredDataFilter

here is my log line:
2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   module...

Please Help
Thanks



 Filters configuration
 -

 Key: LOG4J2-458
 URL: https://issues.apache.org/jira/browse/LOG4J2-458
 Project: Log4j 2
  Issue Type: Question
  Components: Filters
Affects Versions: 2.0-beta9
 Environment: Eclipse on widows
Reporter: Eric
Priority: Minor
  Labels: newbie
 Fix For: 2.0-beta9

   Original Estimate: 0.5h
  Remaining Estimate: 0.5h

 Hi,
 Here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 I'm trying to get my filter to read and accept to log this line and I put 
 this in my configuration file:
 - MarkerFilter:
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   MarkerFilter marker=INFO onMatch=ACCEPT 
 onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 - RegexFilter:
 RollingFile name=LOGS_FILES fileName=txt.logs
   filePattern=txt-%d{MM-dd-}.log.gz
   RegexFilter regex=.*myModule.* 
 onMatch=ACCEPT onMismatch=DENY/
   PatternLayout
   pattern%d: %6p : %t : %c{1} : %m%n/pattern
   /PatternLayout
   TimeBasedTriggeringPolicy /
   /RollingFile
 Base on my log line bellow How do I use:
 - DynamicThresholdFilter
 - ThresholdFilter
 - MapFilter
 - StructuredDataFilter
 here is my log line:
 2013-11-29 15:34:23,345:   INFO : [main] : [myModule] : Initializing   
 module...
 Please Help
 Thanks



--
This message was sent by Atlassian JIRA
(v6.1#6144)

-
To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org
For additional commands, e-mail: