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
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
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.
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
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
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)
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
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
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
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
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
> > 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
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
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
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
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:
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
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
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
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,
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
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
> 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
> 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
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
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
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
and here are the files, sorry...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
> > 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 ;-)
--
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
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]
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-
> 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
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:
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
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
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
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
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
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.
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
> 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
--
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:
> 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
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]
> > 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
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]
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
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
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]
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:
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
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()
&
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
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]
t possible to troncate from the right side.
Is there a workarround ?
Thanks by advance to take time to help me !
Regards
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
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
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
t one.
Thanks,
Patrick Ghielli
61 matches
Mail list logo