Custom Lookup - How to inject dependencies ?

2015-11-26 Thread Patrick Brunmayr
fig.getOrElse[String](key, null) // BAD } } object SyncerLookup{ var config:Config = _ } -- Patrick Brunmayr LINZ AG für Energie, Telekommunikation, Verkehr und Kommunale Dienste A-4021 Linz, Wiener Straße 151, Postfach 1300, Tel. +43/732/3400-0, E-Mail: i...@linzag.at

Malformed JSONLayout output.

2014-12-30 Thread Patrick Flaherty
on if this is a bug, where it would be filed, or any work arounds? Patrick p.s. http://logging.apache.org/log4j/2.x/manual/layouts.html - Doesn't list JSONLayout in the manual menu on the left. Where do I file that? -- * Patrick **Flaherty *| * w:* *e:* patrick.flahe...@weather.com

Using FileAppender - Unable to log to a file

2012-11-09 Thread Jim Patrick
-on-startup /servlet Please let me know if any other details are needed. Thanks in advance, -Jim Patrick -- View this message in context: http://apache-logging.6191.n7.nabble.com/Using-FileAppender-Unable-to-log-to-a-file-tp34694.html Sent from the Log4j - Users mailing list archive

Re: Using FileAppender - Unable to log to a file

2012-11-09 Thread Jim Patrick
Hi Could anyone add your thoughts? Thanks, -Jim -- View this message in context: http://apache-logging.6191.n7.nabble.com/Using-FileAppender-Unable-to-log-to-a-file-tp34694p34695.html Sent from the Log4j - Users mailing list archive at Nabble.com.

Re: NDC Memory Leak without directly referencing it

2009-11-08 Thread Patrick Reolon
that. Thanks and regards Patrick Am 06.11.2009 um 09:47 schrieb Michael Erskine: Sounds like the contextual information isn't being popped off the stack - ensure your EJBs are being properly finalised and destroyed. Regards, Michael Erskine

Re: Logging from appender

2008-09-11 Thread Patrick . Grimard
I'm not an expert on Log4j, but recently had a similar requirement. I didn't want debug messages appearing on the console. So on my console appender, I set a threshold like this: log4j.appender.CA.Threshold=INFO I got that from somebody else on this list. This way I only see INFO messages and

RE: Logging from appender

2008-09-11 Thread Patrick . Grimard
How about calling the subAppend(LoggingEvent) method within your appender? That would prevent the append() method from being called recursively since your disk utilization check is located there. (Embedded image moved to file: pic15141.jpg)

Re: DEBUG messages appearing on console?

2008-09-02 Thread Patrick . Grimard
Thanks Curt. I implemented your suggestion and got what I was looking for. Thanks David for your suggestion as well. Patrick Patrick - Original Message - From: Curt Arnold [EMAIL PROTECTED] Sent: 09/02/2008 04:47 PM To: Log4J Users List log4j-user@logging.apache.org Subject: Re

AW: SMTPAppender ignores Threshold value

2007-07-05 Thread Wyss Patrick
it would be reasonable to include it. best reagrds patrick Reasonable? While you make a good point about the seeming arbitrariness of the default trigger, it really is pretty trivial code. In my case, and I suspect many others, the desirable trigger for sending out recent e-mail logs

AW: Logging Strategy: Using multiple Loggers in same Class file

2007-06-07 Thread Wyss Patrick
2 Logger.getLogger in my class files. It solves my purpose but just wondering if my approach is fine? It's perfect :-) i'd put either the String JobStatus or the whole logger somewhere central like into a singleton (to make sure you can change the loggers name easily) but this is

separate log file for each thread

2007-05-31 Thread Patrick Lisa
really be a separate log file for each thread. I saw the http://stauffer.james.googlepages.com/*DateFormatFileAppender*.java but that doesn't meet what I'm looking for. Any help would be much appreciated! Thanks, Patrick

AW: Viewing plain text log4j log files (was: Vigilog listing as Third-party extension?)

2007-04-10 Thread Wyss Patrick
version i am using? best regards patrick ps: how is the executable searching the jars? i can delete vigilog-1.2.1.jar but the executable is still starting up ?!?!? -Ursprüngliche Nachricht- Von: Wim Deblauwe [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 10. April 2007 10:11 An: Log4J

AW: How to log message from the parent class

2007-03-16 Thread Wyss Patrick
i think currently all your classes are in the same (default)package otherwise the configuration for the loggers would have to be different... cheers patrick -Ursprüngliche Nachricht- Von: wolverine my [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 16. März 2007 10:30 An: Log4J Users

AW: maxBackupIndex with DailyRollingFileAppender

2007-03-01 Thread Wyss Patrick
i made 3 extensions to DailyRoling file appender: 1) dated = the current logfile will also include the date and will not be renamed on rolling 2) compressing = old logs are compressed. 3) cleaning = stupid name but it will delete all files ending with zip which are older than the given max date.

AW: How to set command line so log4j logs everything to console

2007-02-21 Thread Wyss Patrick
i'm not sure if i understand what you want to do but i see 2 possibilities: - have only one log4jconfig and in that define a separat console appender and let the castor packages log to this (additivity=fasle) - do the same configuration from within your code cheers patrick -Ursprüngliche

re: appender-ref to SMTPAppender knocks out log4j

2007-02-14 Thread Wyss Patrick
As soon as I uncomment appender-ref ref=mail/ in the example given below, log4j is no longer picked up (by commons-logging). Is there anything if it's working otherwise then make sure that you have all needed libraries in your classpath (mail.jar, activation.jar) wrong with the

maven build

2007-02-13 Thread patrick
the slight impression that maven is not supported for building log4j but i found nothing that says so. any help apreciate best regards patrick -- View this message in context: http://www.nabble.com/maven-build-tf3219983.html#a8942454 Sent from the Log4j - Users mailing list archive at Nabble.com

AW: Unnecessary garbage

2007-01-24 Thread Wyss Patrick
Why does the logger force you to use Strings? no body is forced to log *strings* have a look at the signature of Logger.info(): public void info(Object message) so use StringBuffers (or if using java1.5 StringBuilder) if you like to. however IMHO your code is generating unnecessary String

Re: AW: Automatically zipping and archiving logs?

2007-01-24 Thread patrick
ok, maybe like this http://www.nabble.com/file/5911/log4jCompressingAppender-src.zip log4jCompressingAppender-src.zip -- View this message in context: http://www.nabble.com/Automatically-zipping-and-archiving-logs--tf3083277.html#a8569737 Sent from the Log4j - Users mailing list archive

AW: Loading sequence of log4j

2007-01-08 Thread Wyss Patrick
. the different classloading strategies) and also if log4j.jar is in a central possition - i get all my logs into a directory which can be served by apache (to authorized users) any comments? cheers patrick -Ursprüngliche Nachricht- Von: Jacob Kjome [mailto:[EMAIL PROTECTED] Gesendet: Dienstag

Re: building a jar with SMTP appender in it?

2006-12-06 Thread patrick
i'm not an expert at this but... 1) make sure you also put the information from MEAT-INF into your jar file or 2) use One-JAR to package several jar files into one http://www-128.ibm.com/developerworks/library/j-onejar/ cheers patrick Jeff Drew-2 wrote: When I build an application .jar, I

Re: building a jar with SMTP appender in it?

2006-12-06 Thread patrick
problems if you repackage them. that's why i would recommend to use One-JAR or something like that (i think there was one called superjar or something) cheers patrick Bence Takács wrote: sorry: it is recommended to extract the contents of the inner.jar into the would-be main.jar's /lib directory

AW: Logging objects

2006-11-03 Thread Patrick Wyss
you can log anything with log4j :-] depending on what you want to do you can use one of the following json: http://www.json.org or xstream: http://xstream.codehaus.org/index.html and either change your log requests: log.debug( xstream.toXML(someObject)); or write your own Layout regards patrick

Re: smtpappender authentication

2006-10-30 Thread patrick
/docs/api/org/apache/log4j/net/SMTPAppender.html#getSMTPUsername() cheers patrick Abid Hussain wrote: Hallo everybody, I'm not an expert in log4j, so maybe I have overlooked something. But I didn't found anything useful in the mailing-list-archives nor in google. I want to use

Re: How to write log using jdbc appender

2006-10-27 Thread patrick
large bursts of requests then i'd recon you'll be better off using the AsyncAppender. cheers patrick ying lcs wrote: hi, Log4j has a jdbc appender. But can i just queue up all the log entries to the disk first. And at the end of the day everyday, It writes to the Database? Thank you

Re: how to define my own log file name

2006-10-03 Thread patrick
day myApp.log.2006.09.30.log for previous days this has the atvantage that you do not need any non-standard appenders cheers patrick James Stauffer wrote: I have written an appender that can do that. http://stauffer.james.googlepages.com/DateFormatFileAppender.java On 9/18/06, kingwell

Re: Logging issue

2006-09-14 Thread patrick
if both machines are on a local network you just have to make sure the used port is not open to the outside world. with reasonable firewall setting this should be the default anyway so no need for ssh... another solution might be to log into a database Shashank-3 wrote: Shashank davanagere

AW: Spam: MaxBackupIndex

2006-09-13 Thread Patrick Wyss
MaxBackupIndex is only available in RollingFileAppender not in DailyRollingFileAppender. if you are interessted i can send you a modified DailyRollingFileappender that keeps only a limited amount of files (and zips old logs) cheers patrick -Ursprüngliche Nachricht- Von: nithya rajeev

AW: DailyRollingFileAppender failing

2006-09-13 Thread Patrick Wyss
I appreciate that this problem is OS specific (Windows 2003 Server) and has windows may not be able to rename files if they are open in some applications. try ProcessExplorer (http://www.sysinternals.com/Utilities/ProcessExplorer.html) to see if a file is open by another process

AW: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
1) i think you have to set TriggeringLevel. I am using param name=Threshold value=DEBUG/. I guess that's the same. no! TriggeringLevel: an event with this level (or higher) will trigger the sending of a new email which contains all events that have a level=threshold host. But my monitor

re: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
- the default for EvaluatorClass is a Class triggering if the Level is ERROR or higher cheers patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: chainsaw for non-xml files

2006-08-31 Thread Patrick Wyss
: 503.997.1367 Fax:503.222.0185 [EMAIL PROTECTED] www.comotivsystems.com -Original Message- From: Patrick Wyss [mailto:[EMAIL PROTECTED] Sent: Thu 8/31/2006 5:37 AM To: Log4J Users List Subject: chainsaw for non-xml files is there any possibility to run chainsaw

AW: HowTo Disable Logging Output for classes using commons.logging

2006-08-29 Thread Patrick Wyss
you can also change the priorities programaticaly from your application: Logger.setLevel(Level level); maybe this is done within quarz??? (i doubt it) this is IMO not recomendable because it is not obvious and not changable without recompilation. so for the original poster: 1) are you 100%

RE: SMTPAppender : how to specify the port ?

2006-08-23 Thread Patrick Wyss
i have a AuthSMTPAppender which i could easyly extend to set the port as well as the authentification. if you're interessted... -Ursprüngliche Nachricht- Von: DeMZed [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 22. August 2006 21:06 An: 'Log4J Users List' Betreff: SPAM: RE:

AW: AW: using variables in log4j xml file

2006-08-23 Thread Patrick Wyss
to pass the parameter to java with the -D switch like this java -Dlog.dir=%LOG_DIR% regards patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: InterruptedIOException in WriterAppender and Thread.interrupt()

2006-08-22 Thread Patrick Wyss
server are different;-) apologies patrick -Ursprüngliche Nachricht- Von: James Stauffer [mailto:[EMAIL PROTECTED] Gesendet: Montag, 21. August 2006 22:48 An: Log4J Users List Betreff: SPAM: Re: InterruptedIOException in WriterAppender and Thread.interrupt() If you interrupt

Re: lifesigns

2006-08-22 Thread patrick
Takacs Bence-2 wrote: What if I make my own LifeSignAppender, which is not a real logger but has a Time parameter, and runs Threads which measure time, and if the Time is up, throw an ERROR level log? However, could an appender throw a log message? make your LifeSignAppender extend

InterruptedIOException in WriterAppender and Thread.interrupt()

2006-08-21 Thread Patrick Wyss
) at moso.Transmission.TransmissionCarrier$AliveTimer.run(TransmissionCarrier.java:461) best regards patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Some questions regarding version 1.3 alpha8

2006-07-21 Thread Patrick Vedrines
? Thanks by advance to take time to help me ! Regards Patrick

RE: Where is CustomSQLDBReceiver

2005-06-09 Thread Ghielli Patrick
Hi, I encountered the same problem. I solved this by downloading the binary distribution (logging-log4j-1.3alpha-6) and making my own log4j-db.jar. You will notice that this jar file contains no classes. Regards, Patrick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Chainsaw with CustomSQLDBReceiver fo oracle

2005-03-22 Thread Ghielli Patrick
. Regards, Patrick. Table schema: NameDatatypeSizeScale Nulls? Default Value MSISDN VARCHAR224 0 No ID VARCHAR215 0 No URL VARCHAR2256 0 No WSP_STATUS_CODE NUMBER 4 0 Yes