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
one have any thoughts 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

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.

Using FileAppender - Unable to log to a file

2012-11-09 Thread Jim Patrick
config /WEB-INF/struts-config.xml 1 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

Re: NDC "Memory Leak" without directly referencing it

2009-11-08 Thread Patrick Reolon
be interested in knowing 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 destroy

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: Logging from appender

2008-09-11 Thread Patrick . Grimard
I'm using a RollingFileAppender in my logging. It extends FileAppender, which extends WriterAppender. The WriterAppender has an "append" method which takes a LoggingEvent object as a parameter. Is your appender a subclass of WriterAppender or some other class that extends WriterAppender? You co

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: 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" Subject: Re: DEBUG messages ap

DEBUG messages appearing on console?

2008-09-02 Thread Patrick . Grimard
I'm trying to configure log4j so that DEBUG messages or lower priority only appear in a log file and not the console, and anything above DEBUG appears on the console. This is what my log4j.properties file looks like right now, however the DEBUG messages are still appearing on the console. I'm us

AW: SMTPAppender ignores Threshold value

2007-07-05 Thread Wyss Patrick
s 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 &g

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 th

Re: separate log file for each thread

2007-06-01 Thread Patrick
Are there other logging subsystems that are capable of doing this other than log4j? Is the only solution to: tail -f main.log | grep [threadid] -Patrick On 5/31/07, Patrick & Lisa <[EMAIL PROTECTED]> wrote: Hi all - I've been searching and have yet to find a definitive a

separate log file for each thread

2007-05-31 Thread Patrick & Lisa
tion would 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: email appender doesn't work with multiple email addresses

2007-05-23 Thread Wyss Patrick
i have a properties file and log4j 1.2.9. and javamail 1.2 and i think separating with commas like this was working: [EMAIL PROTECTED],[EMAIL PROTECTED] i'm no expert at this but i could imagine it also depends on the javamail version and on the mailserver... patrick > -Urspr

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

2007-04-10 Thread Wyss Patrick
which 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:

AW: log4j and console progress bars

2007-03-28 Thread Wyss Patrick
this means that if you want to have a progress bar on the console you should remove the console appender from your log4j configuration. of course this also means that *none* of your logging is shown on the console. but you could still log into a file. btw: in my personal opinion writing to syste

AW: Weird memory consumption

2007-03-22 Thread Wyss Patrick
if i understand you correctly and the memory is reclaimed once you delete the logs, then it is no "leak" (=bad, bad, bad!) but might be "caching" (=good,good,good!). even if this caching might be not desirable in some situations ;-) what i want to say is that i would check if jvn/RH is to be bl

AW: Weird memory consumption

2007-03-22 Thread Wyss Patrick
g4j.RollingFileAppender log4j.appender.TRACE.File=test.log log4j.appender.TRACE.MaxFileSize=100MB log4j.appender.TRACE.MaxBackupIndex=10 log4j.appender.TRACE.layout=org.apache.log4j.PatternLayout log4j.appender.TRACE.layout.ConversionPattern=%d %C - %F %M (%L) [%t] %-5p %c - %m%n cheers patrick > -Ursprüng

AW: How to log message from the parent class

2007-03-16 Thread Wyss Patrick
are in three difference packages 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,

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 d

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 pa

re: appender-ref to SMTPAppender knocks out log4j

2007-02-14 Thread Wyss Patrick
> As soon as I uncomment "" 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 configuration? There is

Re: maven build

2007-02-13 Thread patrick
> The pom.xml in the log4j 1.2 branch is used to describe the project > in the Maven repository, but is not used to build the project. ok, if i would have looked into the pom i would have seen that no dependencies are defined... > It would be good to revisit the pom.xml in both log4j 1.2 and l

maven build

2007-02-13 Thread patrick
ll jar file. i have 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

AW: RollingFileAppender help

2007-02-05 Thread Wyss Patrick
package org.apache.log4j (package visability) for RollingFileAppender you can stay in your own packages (public visability) [IMHO it would make sense for both methods to have protected visability] cheers patrick > -Ursprüngliche Nachricht- > Von: Rakesh Ayilliath [mailto:[EMAIL PRO

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: Automatically zipping and archiving logs?

2007-01-24 Thread Wyss Patrick
and here are the files, sorry... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: AW: Automatically zipping and archiving logs?

2007-01-24 Thread Wyss Patrick
t%-5p\t%C.%M\t%m%n comments are welcome... cheers patrick ps: yeah it sucks, that i put the classes into package org.apache.log4j but i had to ;-) pps: coding style?!? ahmmm, yeah well... ppps: naming?!? at least it says what it's goin

AW: Re: AW: Unnecessary garbage

2007-01-24 Thread Wyss Patrick
> > No, I don't think so. "some string here" is a constant. It gets > > interned. No new object gets created on each call. The String gets > > created once when the class loads. > > how much would you bet :-] > ooops i guess i was wrong here :-} apologies for opening my big mouth ;-) --

AW: Automatically zipping and archiving logs?

2007-01-24 Thread Wyss Patrick
i have done that, (you can also specify a max age for the files...) however it is not documented well. i'll send it to you directly, comments welcome ;-) cheers patrick > -Ursprüngliche Nachricht- > Von: news [mailto:[EMAIL PROTECTED] Auftrag von Chris > Gesendet: Mittwo

AW: Re: AW: Unnecessary garbage

2007-01-24 Thread Wyss Patrick
think so. "some string here" is a constant. It gets > interned. No new object gets created on each call. The String gets > created once when the class loads. how much would you bet :-] cheers patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Logger (not Appender) Filter

2007-01-24 Thread Wyss Patrick
cause your proposal sounds too useful to not be implemented ;-)] you'd have to subclass Logger and do your own LoggerFactory for this as you say and it would be nice if it was configurable in the same way as the appender filters. cheers patrick > -Ursprüngliche Nachricht-

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 o

AW: Loading sequence of log4j

2007-01-08 Thread Wyss Patrick
s on all jboss versions (e.g. 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:

Re: building a jar with SMTP appender in it?

2006-12-06 Thread patrick
into legal 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

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 appli

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
log4j/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

Re: How to write log using jdbc appender

2006-10-27 Thread patrick
f you have 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 ev

Re: how to define my own log file name

2006-10-03 Thread patrick
the files: "myApp.log" for the actual 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.

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 gmail.com

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: 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:

AW: chainsaw for non-xml files

2006-08-31 Thread Patrick Wyss
> app preferences). > > You can view an example receiver configuration from > Chainsaw's Welcome tab. > > > Scott Deboy > COMOTIV SYSTEMS > 111 SW Columbia Street Ste. 950 > Portland, OR 97201 > > Telephone: 503.224.7496 > Cell: 503.997.1367

re: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
ot; - 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: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
> > 1) i think you have to set TriggeringLevel. > I am using . 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 program (TCPMon) does not get

chainsaw for non-xml files

2006-08-31 Thread Patrick Wyss
files are getting way to big => i love logging *everything* ;-) cheers patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: Problem using SMTPAppender

2006-08-31 Thread Patrick Wyss
localhost? i.e. can you do a: telnet localhost 25 cheers patrick -Ursprüngliche Nachricht- Von: Thomas Saxtoft [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 31. August 2006 14:06 An: log4j-user@logging.apache.org Betreff: Problem using SMTPAppender I have been fiddling with SMPTAppender for a

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% sure

AW: AW: using variables in log4j xml file

2006-08-23 Thread Patrick Wyss
ve no clue how ant is doing this, but probably it could be done your own application as well. bottomline: you have 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: 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:

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 ext

Re: InterruptedIOException in WriterAppender and Thread.interrupt()

2006-08-22 Thread Patrick Wyss
r sun 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() &

AW: using variables in log4j xml file

2006-08-22 Thread Patrick Wyss
with ${env.MY_PROPERTY} so on windows you would do SET MY_PROPERTY=c:\my_log_directory and in your log4j.xml you would access it: patrick > -Ursprüngliche Nachricht- > Von: Jacob Kjome [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 21. August 2006 22:17 > An: Log4J Users Li

InterruptedIOException in WriterAppender and Thread.interrupt()

2006-08-21 Thread Patrick Wyss
ory.debug(Category.java:248) 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
t possible to troncate from the right side. Is there a workarround ? 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
ave no effect at all. Regards, Patrick. Table schema: NameDatatypeSizeScale Nulls? Default Value MSISDN VARCHAR224 0 No ID VARCHAR215 0 No URL VARCHAR2256 0 No WSP_STATUS_CODE NUMBER

RE: Chainsaw with CustomSQLDBReceiver fo oracle

2005-03-22 Thread Ghielli Patrick
Hi, I have included the table schema and the DB receiver config file. I kept the remarks below in mind, since they were already mentionned in an earlier posting. But unfortunately, still no success. The 'application' and 'hostname' paraeters seem to have no effect at al

Chainsaw with CustomSQLDBReceiver fo oracle

2005-03-16 Thread Ghielli Patrick
t one. Thanks, Patrick Ghielli