Arbiter with properties syntax

2022-05-13 Thread Simon Nikolaus
Hello log4j-users, for the environments i‘d like to have different levels with log4j 2.17. I use arbiter with xml syntax that’s functional: https://dpaste.com/AQ6MC4AJM *How do I do it with properties syntax?* I tried many options after read https://logging.apache.org/log4j/2.x/manual/configura

Re: rolled log file continues to grow unbound

2016-03-31 Thread Simon Chan
Hi Ron, You are right! fd 1 and 2 are blocking log4j from closing the log file properly. tomcat starts the Java process with: java -Dblah... >> catalina.out 2>&1 & I wonder how we did not notice this in the past years. Thanks again Simon On Thu, Mar 31, 2016 at 2:38 PM, Ro

rolled log file continues to grow unbound

2016-03-31 Thread Simon Chan
ore.ContainerBase.[Catalina].[localhost]=WARN log4j.logger.org.apache.catalina.core=WARN log4j.logger.org.apache.catalina.session=WARN log4j.logger.com.ourcompany=INFO tomcat config == Probably relevant but there are multiple conf files and web.xml and I don't know which involve logging. Regards, Simon

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Simon Park
FWIW, if you're stuck on Log4J 1.2.17, you could use the TimeAndSizeRollingAppender available from www.simonsite.org.uk to solve this use case. Best Regards, Simon Sent from my iPad > On 5 Jan 2016, at 06:14, Anshu Garg1 wrote: > > Hi, > > We have extended pattern

Re: RollingFileAppeneder MaxSize + keep 30 days

2015-07-03 Thread Simon
If you're stuck on Log4J 1.2 then you could try out the TimeAndSizeRollingAppender available at www.simonsite.org.uk. Sent from TypeMail On 2 Jul 2015 23:54, at 23:54, Benjamin Jaton wrote: >Hello, > >How can I define a RollingFileAppender that would roll when it reaches >100MB, and that woul

Re: Why RollingFileAppender do not work by size on WebLogic 10.3.3 with Log4J 1.2.16 and jdk 1.6.0_33?

2015-02-03 Thread Simon
If there's a great reason why you can't make the move to Log4J 2.x then you could try the TimeAndSizeRollingAppender for Log4J 1.2.x. Google the appender name. Best Regards, Simon Sent from Blue Mail On 22:45, 2 Feb 2015, at 22:45, "Jordán E Moisés" wrote: >Why Rol

Re: Flume-Appender

2012-11-16 Thread Simon Monecke
okay, now my logger can connect to the flume agent. But it cant send a message: "ERROR Could not search jar file '' for classes matching criteria: annotated with @Plugin file not found" Has anybody an idea? Regards, Simon 2012/11/16 Simon Monecke > Hi, > >

Re: Flume-Appender

2012-11-16 Thread Simon Monecke
equired libraries into generated JAR". Otherwise ("Extract required...") eclipse found two Log4j2Plugins.dat and ignore the other one, but you need both of them. One required for core-appender and the other for flume-ng-appender. Sooo, it was my fault ;) Regards, Simon 2012/

Re: Flume-Appender

2012-11-14 Thread Simon Monecke
the exact dependencies needed for both the Remote and > embedded appenders. I will try to add that to the wiki but I won't be able > to get to it until tonight at the earliest. > > Ralph > > On Nov 13, 2012, at 7:32 AM, Simon Monecke wrote: > > >

Re: Time and Size based rolling (using log4j companions extras)

2011-07-06 Thread Simon Park
eaded applications that can easily log 100s of MB per minute. Best Regards, Simon From: Olivier Jaquemet To: log4j-user@logging.apache.org Sent: Tue, 5 July, 2011 16:28:38 Subject: Time and Size based rolling (using log4j companions extras) Hi, I am trying to get

Re: TimeAndSizeRollingAppender

2011-05-25 Thread Simon Park
make corrections. Best Regards, Simon From: Simon Park To: Log4J Users List Sent: Tue, 19 April, 2011 21:07:19 Subject: Re: TimeAndSizeRollingAppender Hi Joe, The Appender is not available in a public Maven repository. I usually recommend that users

Re: TimeAndSizeRollingAppender

2011-04-19 Thread Simon Park
A is a little ahead. Best Regards, Simon From: Joe.Littlejohn To: log4j-user@logging.apache.org Sent: Tue, 19 April, 2011 18:24:45 Subject: Re: TimeAndSizeRollingAppender Simon, Your appender looks to be exactly what we need. Is this available in a Maven repo

Re: RollingFileAppender + TimeBasedRollingPolicy

2010-10-14 Thread Simon Park
log file. HTH, Simon From: Jacob Kjome To: Log4J Users List Sent: Thu, 14 October, 2010 16:38:31 Subject: Re: RollingFileAppender + TimeBasedRollingPolicy Not that I can see. I think a FixedWindowRollingPolicy + SizeBasedTriggeringPolicy would do what you need.

Re: Is DailyRollingFileAppender stable?

2010-09-06 Thread Simon Park
No such issues have (so far) been observed with the TimeAndSizeRollingAppender, which directly subclasses the Log4J FileAppender. This Appender does the same stuff as the DailyRollingFileAppender, plus a few extra features. You could perhaps give that a try. Available under the Apache 2.0 lic

Re: Tomcat Daily Log Rotation fails at app. level.

2010-05-19 Thread Simon Park
and/or size constraints that you specify. See my homepage, www.simonsite.org.uk for details. Best Regards, Simon From: "ru...@albany.edu" To: log4j-user@logging.apache.org Sent: Wed, 19 May, 2010 18:59:03 Subject: Tomcat Daily Log Rotation fa

Using a Custom Filter

2010-05-13 Thread simon
to do/extend to make things work as I want will be gratefully received. thanks, Simon > here's my code if it's any help: package org.logging.test; import org.apache.log4j.Logger; import org.apache.log4j.xml.DOMConfigurator; public class TestLogger { static Logger logger

Re: Question about using org.apache.log4j.rolling.RollingFileAppender

2010-04-02 Thread Simon Park
The TimeAndSizeRollingApender doesn't bother renaming the list of backup files and so doesn't have this restriction. It's freely available under the same Apache 2.0 license as Log4J at www.simonsite.org.uk. From: Doal Miller To: Log4J Users List Sent: Tue,

Re: How to roll the file based on size and time?

2010-02-20 Thread Simon Park
You could try the TimeAndSizeRollingAppender available at www.simonsite.org.uk. From: Maarten Bosteels To: Log4J Users List Sent: Fri, 19 February, 2010 8:47:23 Subject: Re: How to roll the file based on size and time? Not that I know of. But it's easy to wri

Re: Adding a Header to Log4j with DailyRollingAppender

2010-02-11 Thread Simon Park
download links. HTH, Simon From: c0de_ek0 To: log4j-user@logging.apache.org Sent: Thu, 11 February, 2010 15:08:47 Subject: Adding a Header to Log4j with DailyRollingAppender Good Morning, We would like to add a disclaimer header to a daily generated log4j log

Re: How can I write a custom appender to supports Throwable as a second parameter?

2009-09-28 Thread Simon Gibbs
e/log4j/LoggingEvent.html> . Thus, it returns |true|." http://www.docjar.com/docs/api/org/apache/log4j/PatternLayout.html#ignoresThrowable Simon signature.asc Description: OpenPGP digital signature

Re: How can I write a custom appender to supports Throwable as a second parameter?

2009-09-28 Thread Simon Gibbs
ogger code is right (and is not subject to change anyway). logger != appender :-) Simon signature.asc Description: OpenPGP digital signature

Re: DailyRollingFileAppender - creation of directories? (patch)

2009-09-01 Thread Simon Gibbs
patch, which fixes the file not found exceptions that occur at the change of the month. Simon Gibbs Andrew Thorburn wrote: > I'm fairly sure this isn't possible, but I figured I should check, just in > case. > > Currently, I have the DRFA set up to roll the log files over

Re: WG: Only partial logging with log.debug

2009-08-02 Thread Simon Gibbs
der it could be buffered. Try adjusting buffers. Simon signature.asc Description: OpenPGP digital signature

Re: How to implement DailyRollingFile appender with rollingPolicy

2009-05-17 Thread Simon Park
under has write access to files in that dir. HTH, Simon From: Sindhu To: log4j-user@logging.apache.org Sent: Wednesday, 13 May, 2009 11:08:50 Subject: Re: How to implement DailyRollingFile appender with rollingPolicy Thanks for the reply, i tried to implemen

Re: Access logfile logger

2009-05-04 Thread Simon Park
to access this property of the appender from a separate thread, you'll have to provide a synchronized version of the CountingQuietWriter (I've already written one of these - let me know if you'd like the source). Cheers, Simon From: "ja.

Re: Custom Appender works fine with rootlogger, but not when logger specified

2009-03-19 Thread Simon Park
sounds of it. Simon From: Guy To: log4j-user@logging.apache.org Sent: Thursday, 19 March, 2009 9:48:51 Subject: Custom Appender works fine with rootlogger, but not when logger specified Hi, I have written a custom appender that adds file rotation and zipping

Re: timestamp in rolled over files

2009-03-03 Thread Simon Park
You could maybe use the org.apache.log4j.DailyRollingFileAppender to roll by time only. You use a pattern compatible with java.text.SimpleDateFormat to configure the appender's DatePattern property with the period you want files to roll, e.g. by any one of minute, hour, half-day, day, week, etc

Re: TimeAndSizeRollingAppender contribution

2009-02-05 Thread Simon Park
Links seem to have been stripped out of the previous mail. Useful links are: Javadoc: http://www.simonsite.org.uk/javadoc/org/apache/log4j/appender/TimeAndSizeRollingAppender.html JAR: http://www.simonsite.org.uk/resources/lib/log4j-rolling-appender.jar Simon

TimeAndSizeRollingAppender contribution

2009-02-05 Thread Simon Park
e Apache 2.0 license. HTH, Simon

TimeAndSizeRollingAppender

2008-12-19 Thread Simon Park
using a separate thread. It's compatible with Log4J 1.2.9 - 1.2.15. Hopefully this is useful. Simon

Tomcat's log files rolled over daily but some of today's logs still recorded to yesterday's log file

2008-07-04 Thread Simon McCorkindale
ernLayout log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p - %m%n Thank you in advance. Simon McCorkindale Technical Support Engineer DISCLAIMER: This e-mail is confidential and may also be legally privileged. If you are not the intended recipient, use of the information contained in this e-ma

Re: AsyncAppender "blocking" property

2008-06-26 Thread Simon Park
Hi Adam, If you're at all interested, I've put together a non-blocking alternative to the Loj4J AsyncAppender. This code has been contributed to the Log4J project, though it hasn't been picked up since it has external dependencies. Details at http://www.simonsite.

Time-and-size rolling appender

2007-09-22 Thread Simon Park
incorporates a file scavenger to remove older log files once a configurable number of log files has been exceeded. The idea here is to avoid the need to manage log files by deleting older files manually, via batch scripts or other methods. Many thanks, Simon

Re: xml or properties

2007-08-29 Thread simon litwan
Matthew Kemp schrieb: There is some overhead with parsing the xml/building the DOM, but since that only happens when the config is loaded the impact should be minimal. this should be no problem. Once log4j is setup there is no difference. great. thanks for your quick response. simon On

xml or properties

2007-08-29 Thread simon litwan
hi all is there any difference re performance when using log4j.xml instead of log4j.properties? cheers simon -- Simon Litwan [EMAIL PROTECTED] Wyona Inc. - Open Source Content Management - Apache Lenya http://www.wyona.com http

RE: ExpressionFilter and TIMESPAN

2007-08-17 Thread WALLIS, Simon, GBM
Thanks Curt, that's perfect! Now... where do I download the update and sample XML config files from? I originally got the extras companion from http://people.apache.org/builds/logging/log4j/companions/extras/1.0/, but I don't see anything new in there. Cheers, Simon. -Origin

RE: ExpressionFilter and TIMESPAN

2007-08-15 Thread WALLIS, Simon, GBM
Oops, I meant to type TIMESTAMP, not TIMESPAN. Simon Wallis Developer RBS Global Banking & Markets London - 42 Islington High St, (Regents House) - N1 8XL Office: +44 20 7085 2929 -Original Message- From: WALLIS, Simon, GBM Sent: 15 August 2007 16:58 To: 'Log4J Users List

ExpressionFilter and TIMESPAN

2007-08-15 Thread WALLIS, Simon, GBM
MM/dd hh:mm:ss". Is there a quick way to determine the long value of a date I have in mind? Cheers. Simon Wallis Developer RBS Global Banking & Markets London - 42 Islington High St, (Regents House) - N1 8XL Office: +44 20 7085 2929 -Original Message- From: WALLIS, S

RE: Using the extras companion

2007-08-15 Thread WALLIS, Simon, GBM
xception trying to throw a MalformedPatternException. I've got it working now so thanks for your help! Simon Wallis Developer RBS Global Banking & Markets London - 42 Islington High St, (Regents House) - N1 8XL -Original Message- From: Curt Arnold [mailto:[EMAIL PROTECTED] Se

Using the extras companion

2007-08-14 Thread WALLIS, Simon, GBM
it is from 2005 and there is no "varia" in the package name with the extras companion: http://mail-archives.apache.org/mod_mbox/logging-log4j-user/200601.mbox/%3C8 [EMAIL PROTECTED] <http://mail-archives.apache.org/mod_mbox/logging-log4j-user/200601.mbox/%3C [EMAIL PROTECTED]>

Date corruption in logging

2005-05-26 Thread Simon Kelly
seen this before, and if so does anyone know a solution? Kind regards Simon Simon D Kelly Support Analyst Talgentra Ltd. 720 Waterside Drive, Aztec West, Bristol. BS32 4UD. Tel: +44 (0) 1454 892000 (Main) +44 (0) 1454 892032 (Direct) Fax: +44 (0) 1454 892030 Email : [EMAIL

isDebugEnabled()

2005-04-12 Thread Simon Heinzle
s is only because repository.isDisabled() always returns false -- How to set-up the log4j.xml file that repository.isDisabled() returns true if a logger is disabled? (and so this.getEffectiveLevel() & level.isGreaterOrEqual() aren't executed) Following xml settings did

RE: Log4j: appender specific logging levels?

2004-05-18 Thread Simon Dorrat
rootLogger should always be equal to the lower of the two threshold settings - having it higher may render the thresholds useless, having it lower is bad for performance). Not sure whether using filters are more efficient than thresholds or visa versa. Paul? Simon GOLD

RE: Logging every package with a different appender

2004-05-17 Thread Simon Dorrat
need a seperate appender as you originally had. But still make sure you use the fully qualified class name. Hope this helps. Simon > -Original Message- > From: gfdgdf gdfgdf [SMTP:[EMAIL PROTECTED] > Sent: Thursday, 13 May 2004 5:12 PM > To: Log4J Users List > Subject: RE

Re: Another confusion: how to log multiple files.

2004-04-01 Thread Simon Kitching
ges. The parameter to the getLogger method is therefore *not* a "filename" or a description of "where" you will log. One common pattern in java is this: Logger log = Logger.getLogger(this.getClass().getName()); log.info("I'm here"); this logs a message about t

Re: Confused about log4j.properties

2004-04-01 Thread Simon Kitching
r the same category, then the threshold setting allows you to do this. Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: suppressing duplicates

2004-04-01 Thread Simon Kitching
message(s) and reject a new message if it "matches", for whatever definition of "matches" you care to implement. Not that I'm an expert on this... Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Configuring logger Levels for different Appenders

2004-03-30 Thread Simon Kitching
priority than the threshold. Note that this is significantly less efficient than the filtering by category so filter out as much stuff as possible using the category priority first. I'm not sure of the exact .properties syntax for setting this; I use xml config files myself. Regards,

Re: Need to log based on criteria other than simply levels

2004-03-24 Thread Simon Kitching
multiple variables, ie configure filtering level where (user="..." and app="..."). There is this thing called "Nested Diagnostic Contexts" that would at least ensure that all messages for a user were labelled with the username or userid of the user they relate to. But there isn't any facility for filtering based on NDC values. Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: when to log Exceptions

2004-03-16 Thread Simon Dorrat
play safe by loggin error as a warning at a lower layer just to guarantee something is in the log, but so any Error event handling is not triggered until the appropriate layer logs it) btw I think you should never turn off error logging. Simon > -Original Message- > From: Larry Youn

RE: multiple levels

2004-03-11 Thread Simon Dorrat
equal to the lowest set above. log4j.rootLogger=DEBUG, Console, ComponentLog, ApplicationLog # Define the three appenders next as per normal ... ... ... Simon > -Original Message- > From: Kichline, Don (EM, PTL) [SMTP:[EMAIL PROTECTED]

RE: LevelMatchFilter does not match CustomLevel

2004-02-29 Thread Simon Dorrat
#. Simon > -Original Message- > From: Taner Akbulut [SMTP:[EMAIL PROTECTED] > Sent: Saturday, 28 February 2004 12:46 AM > To: [EMAIL PROTECTED] > Subject: LevelMatchFilter does not match CustomLevel > > Hi, > > i need to log my own Level in a seperate File

RE: Help with loggers - syslogd

2004-02-19 Thread Simon Dorrat
e you do not specificy an appender twice. For your case this could explain everything going to the SysLog appender, if you have this specified higher in the hierarchy than the other application log setting. If this doesnt help, reply with the contents of your property file so we can help more.