ConsoleAppender and closing an SSH session

2008-07-31 Thread Jeff
file and to System.out. Closing an SSH session had no ill effects. OS is Linux, CentOS 4.6 32 bit under VMware Server 1.0.x. JRE is Sun 1.6.0_05-b13. There is no X display system installed. I googled this without success. I'm hoping someone here has a clue for me. --

Re: ConsoleAppender and closing an SSH session

2008-07-31 Thread Jeff
;. Well I'm not convinced that this is completely unrelated to log4j. This set of apps has run for 8 years in one form or another and has been scripted to survive a logout. Now, with no changes except the introduction of log4j, the behavior has changed. In any case, I appreciate the pointer to screen. I will check it out. -- Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Distributed Logging Problem (log to remote database possible?)

2008-08-07 Thread Jeff
a bit raw. I have not used it myself. Not log4j related, but I use syslog-ng with a mysql backend, but I have not been pleased with the un-refined method used to get syslog records into the database. -- Jeff - To unsubscribe, e-m

ERROR HTMLLayout contains invalid attributes "datePattern", "timezone"

2021-02-14 Thread Jeff Schmidt
I'm trying to setup HTML Logging, and want to change the date Pattern. I found the following page: https://logging.apache.org/log4j/2.x/manual/layouts.html#HTMLLayout Which indicates that HtmlLayout has those to parameters: However, when I run my program, I get an error: ERROR HTMLLayout con

Re: ERROR HTMLLayout contains invalid attributes "datePattern", "timezone"

2021-02-14 Thread Jeff Schmidt
he current version of the code for 2.14.x, not 2.6.x. Gary On Sun, Feb 14, 2021, 12:51 Jeff Schmidt mailto:jsb...@weldingengineering.com>> wrote: I'm trying to setup HTML Logging, and want to change the date Pattern. I found the following page: https://logging.apache

How to make a custom connection source available in log4j 2 config?

2014-04-16 Thread Jeff Shaw
do to make my custom connection source available in the configuration? I'm hoping the answer will also apply to a custom appender and manager I've written, neither of which work because they also cannot be instantiated from the configuration, however the error is a class not foun

Re: How to make a custom connection source available in log4j 2 config?

2014-04-16 Thread Jeff Shaw
Hi Ralph, Thanks for your suggestions. I will try them. I am indeed using 2.0-rc1. Jeff On Wed, Apr 16, 2014 at 5:58 PM, Ralph Goers wrote: > If you are using 2.0-rc1 then you need to make sure that you either: > a) have the packages attribute specified on the configuration element with

Re: Log4j2 Official Release

2014-07-10 Thread Jeff Shaw
Mohommad, your email title got me excited for nothing. :-( Jeff On Thu, Jul 10, 2014 at 11:36 AM, Ralph Goers wrote: > Nothing around here is cast in concrete. However, I personally have one > more patch to apply and then I will propose doing the release. The release > vote coul

Re: Extending Appenders

2014-08-30 Thread Jeff Shaw
It sounds like a feature that belongs to any logger. Syslog doesn't need to know that a database server is unavailable every nanosecond, either. Sent from my phone > On Aug 30, 2014, at 3:19 AM, Remko Popma wrote: > > This sounds like a good feature to have in log4j2. I remember we had an issu

Re: Migrating from log4j 1x to 2x

2015-03-06 Thread Jeff Snow
I believe what you want to do is this (from the Log4j2 docs): The following XML fragment defines policies that rollover the log when the JVM starts, when the log size reaches twenty megabytes, and when the current date no longer matches the log’s start date. Jeff From

Problem Running Chainsaw v2

2004-03-27 Thread Jeff Longland
a bug? Thanks, Jeff C:\Java\logging-log4j>..\setclasspath1.4.2.bat C:\Java\logging-log4j>SET CLASSPATH=.C:\Java\j2sdk1.4.2_04\lib\dt.jar;C:\Java\j2 sdk1.4.2_04\lib\htmlconverter.jar;C:\Java\j2sdk1.4.2_04\lib\tools.jar;C:\Java\cv sgrab-2.0.3\lib\cvsgrab.jar;C:\Java\commons-cli-1.0\commons-cl

Another Newbie Question

2004-04-01 Thread Jeff Longland
s it timestamped and a new file is created? Or will I have to script this myself? Thanks, Jeff > -Original Message- > From: Kawthar Bt M Sulaiman [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 01, 2004 2:42 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Re:

suppressing duplicates

2004-04-01 Thread Jeff Drew
I love log4j. We find it invaluable and have purchased the manual to support the project. Does log4j have the ability to suppress duplicates? Not the duplication caused by root loggers and descendants. I know that is alleviated by with the additivity setting. For example, when a connect

cross-platform log file path?

2004-04-04 Thread Jeff Drew
My Java application runs on Windows, Solaris, and Linux. Right now, it queries the operating system for the type, then looks in the correct log4j config file path, either: C:\Programs\AppName\AppLogConfig.properties or /usr/local/AppName/AppLogConfig.properties However, I need a different ve

file and line number missing

2004-06-21 Thread Jeff Drew
log4j stops reporting file and line number when my application ends one thread of a class, then starts a new thread. Here is the output before and after the problem. What could cause this loss of file and line number? =2004-06-21 12:01:19,100 ERROR [Thread-17] probeServer (prob

logging a stack trace

2004-09-15 Thread Jeff Drew
How do I write a stack trace to a log? I found some references in the mail archives, but couldn't find a solution. I couldn't find it in Ceki's book. Here's a simple example of my goal. Thanks! public class LogStackTrace { static Logger logger = Logger.getLogger("LogStackTrace"); public s

Re: logging a stack trace

2004-09-15 Thread Jeff Drew
ot;, e); Yoav Shapira Millennium Research Informatics >-Original Message- >From: Jeff Drew [mailto:[EMAIL PROTECTED] >Sent: Wednesday, September 15, 2004 9:57 AM >To: Log4J Users List >Subject: logging a stack trace > >How do I write a stack trace to a log? >I found

WebLogic 8.1 and Chainsaw

2004-09-16 Thread Jeff Longland
idity to such a claim? Thanks, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: WebLogic 8.1 and Chainsaw

2004-09-16 Thread Jeff Longland
pender consume? Jeff Paul Smith wrote: I'm currently administering a Java app running on WebLogic 8.1. The app uses log4j to handle logging events and I have setup a few socket appenders to monitor classes important in our day-to-day operations. Chainsaw has been great for staying on top of

unit in configureAndWatch?

2004-09-28 Thread Jeff Drew
What is the unit for the interval argument in PropertyConfigurator.configureAndWatch( filename, interval )? milliseconds? seconds? Thanks Jeffrey Drew President and Founder Trading Metrics, Inc. 917-453-0302

use log4j for error transmission?

2005-05-24 Thread Jeff Drew
The output module might be able to take advantage of Chainsaw. I'm familiar with writing log4j messages to Loggers. Can I instantiate a log message? something like:Log4jMessage message = new Log4jMessage(priority, text, time); Is this idea a poor bastardization of log4j or a good idea? Thanks Jeff

Socket Appenders and Multiple Clients

2005-05-30 Thread Jeff Longland
INSAW and A_CHAINSAW from the root category, log events began to flow again to JCHAINSAW. Is this normal behaviour? Is the problem with multiple socket appenders on the root category, or the fact they were unavailable? Or should I look at using a sockethubappender instead? Thanks,

Re: Socket Appenders and Multiple Clients

2005-05-30 Thread Jeff Longland
Problem solved, removed the spaces when defining the appenders: log4j.rootCategory=ERROR,J_CHAINSAW,T_CHAINSAW,A_CHAINSAW Jeff Jeff Longland wrote: The other day I setup three socket appenders on the root category: log4j.rootCategory=ERROR, J_CHAINSAW, T_CHAINSAW, A_CHAINSAW T_CHAINSAW and

log4j logging draft

2005-06-02 Thread Jeff Drew
g the Chainsaw gui or is there some mini-Chainsaw commonly used? Thanks! Jeff

right design?

2005-06-03 Thread Jeff Drew
g the Chainsaw gui or is there some mini-Chainsaw commonly used? Thanks! Jeff Jeff Drew Founder Trading Metrics, Inc. 917-453-0302

right design?

2005-06-03 Thread Jeff Drew
g the Chainsaw gui or is there some mini-Chainsaw commonly used? Thanks! Jeff

log4j stack trace

2005-12-07 Thread Jeff Drew
My application had an error in the log4j code. It is likely a problem in my code, but I'd appreciate any insights into what this particular error implies. This code has been running for quite without seeing this error. java.lang.NullPointerException at java.lang.String.intern()Ljava.lang.St

Re: log4j stack trace

2005-12-07 Thread Jeff Drew
ggers : > private static Logger logger = Logger.getLogger(MyClass.class); > > Nico > > Jeff Drew a écrit : > > >My application had an error in the log4j code. It is likely a problem in > my > >code, but I'd appreciate any insights into what this

reusability and applet dilemma

2006-02-20 Thread Jeff Drew
another, more appealing alternative. Here's a simple example that illustrates my problem. Thanks Jeff public class TimeStamp implements Serializable { // the following line will cause a security exception static Logger cat = Logger.getLogger( &

Re: reusability and applet dilemma

2006-02-22 Thread Jeff Drew
prefer using basic log4j techniques if possible. Thanks again, Jeff On 2/21/06, Ceki Gülcü <[EMAIL PROTECTED]> wrote: > > > Jeff, > > Have you considered using the basic techniques already offered by the > log4j > framework? For instance, you could configure log4j diffe

Log4j Web-Deployment best practices question

2006-03-10 Thread Jeff Bischoff
INFO [STDOUT] java.lang.ClassCastException: org.jboss.logging.appender.DailyRollingFileAppender ...(stack trace follows) - Jeff Bischoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Log4j Web-Deployment best practices question

2006-03-10 Thread Jeff Bischoff
Yes, but then I am not "playing nice" with the other web applications running on that Tomcat server? James Stauffer wrote: You could setup Tomcat to have common/lib/log4j.jar and common/classes/log4j.xml. Then the same war should work for both Tomcat and JBoss. On 3/10/06, Jef

inheritance dilemma

2006-04-14 Thread Jeff Drew
Some code I'm writing runs in two different environments. In one environment, I'm using log4j. In the other environment, the code calls that environment's logging system. Therefore, I need to subclass log4j's Logger so that I can implement an interface required by the other logging system. I have

Re: inheritance dilemma

2006-04-15 Thread Jeff Drew
Jake, So the constructor should read: public LoggerX(String FQCN) { logger = Logger.getLogger(FQCN); } correct? Thanks Jeff On 4/14/06, Jacob Kjome <[EMAIL PROTECTED]> wrote: > > > Whoops, I didn't mean to expose the Logger in the constructor. I > m

Re: inheritance dilemma

2006-04-16 Thread Jeff Drew
Thanks Jake, It makes sense to me. I just want to confirm that I'm creating an instance of LoggerX for each FQCN, just as I usually call Logger.getLogger to use log4j directly. correct? Thanks again, Jeff On 4/15/06, Jacob Kjome <[EMAIL PROTECTED]> wrote: > > > No, >

Re: inheritance dilemma

2006-04-17 Thread Jeff Drew
> allows Log4j to properly parse stack traces to determine which method > was called, in the case where that is specified in the pattern for > the appender. It lets Log4j know that it is not the call from the > wrapper class that is the method to be shown, but from the class > using th

using SMTP appender - no object DCH for MIME

2006-12-04 Thread Jeff Drew
ns( ); PatternLayout layout = new PatternLayout("%m"); sa.setLayout( layout); log.addAppender( sa ); log.error( "test message body" ); } } Thank you in advance, Jeff

Re: using SMTP appender - no object DCH for MIME

2006-12-05 Thread Jeff Drew
I figured it out - I upgraded my version if java mail to 1.4. On 12/4/06, Jeff Drew <[EMAIL PROTECTED]> wrote: I'm using SMTP appender following the example I found. Setting setSMTPdebug() proved that I could authenticate. However, the content seems to be adverse to the mail host.

building a jar with SMTP appender in it?

2006-12-05 Thread Jeff Drew
hanks Jeff Exception in thread "main" java.lang.SecurityException: no manifiest section for signature file entry javax/activation/DataContentHandlerFactory.class at sun.security.util.SignatureFileVerifier.verifySection (SignatureFileVe rifier.java

Chainsaw and VFS XML Layout

2007-02-28 Thread Jeff Longland
I was just wondering if there's a VFS receiver that supports XMLLayout? Thanks! Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

large amounts of 0 characters at beginning of log

2007-03-16 Thread Jeff Drew
I'm having a problem in one installation where approximately 8 Mb of 0x00 appear at the start of the log file. Then the file contains typical log output. A typical RollingFileAppender writes to this file. MaxFileSize=10KB and MaxBackupIndex=3. Since this log is what I use for application di

Re: large amounts of 0 characters at beginning of log

2007-03-16 Thread Jeff Drew
configureAndWatch set to 1. Thanks Jeff On 3/16/07, Ceki Gülcü <[EMAIL PROTECTED]> wrote: Hi Jeff, Couple of questions. Are multiple processes writing to the same file? Are you using the configureAndWatch method? At 01:39 PM 3/16/2007, Jeff Drew wrote: >I'm having a problem in on

Does log4j block if disk is full?

2007-04-16 Thread Jeff Drew
I'm using a RollingFileAppender on Solaris with Hotspot 1.5. The disk partition recently filled and my application hung. The threads were alive, but not processing input. Since log4j is the only function that writes to the local disk, I'd like to know more about how it deals with this problem.

Re: slf4j, log4j and PropertyConfigurator.configure

2012-06-07 Thread Jeff Sawatzky
now escaped the "," in my properties file and it seems to work fine now. Thanks again! Jeff. On 2012-06-07, at 4:26 AM, ceki wrote: > Hello Jeff, > > From the messages log4j outputs at configuration time, it very much > looks like the root logger is defined twice with the