The value for the SBFILENAME-POC-PROCESS will be
log.poc-process.. and for POC-VALIDATION, it is like
log4j.appender.POC-VALIDATION.File=/home/test/log/${SBFILENAME-POC-VALIDATION},
the possible value will be log.poc-validation.
James Stauffer <[EMAIL PROTECTED]> wrote:
What did you do
What did you do for log4j.appender.POC-VALIDATION.File and what were
the values of SBFILENAME-POC-PROCESS and the other system proptery?
What happened when you did that?
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> I did it like :
>
> log4j.appender.POC-PROCESS.File=/home/test/log/${SBF
I did it like :
log4j.appender.POC-PROCESS.File=/home/test/log/${SBFILENAME-POC-PROCESS}
This is not working as well.
James Stauffer <[EMAIL PROTECTED]> wrote:
Can you explain how you did that? You could also do something like:
log4j.appender.POC-VALIDATION.File=/home/test/log/VALID
Can you explain how you did that? You could also do something like:
log4j.appender.POC-VALIDATION.File=/home/test/log/VALIDATION-${SBFILENAME}
log4j.appender.POC-PROCESS.File=/home/test/log/PROCESS-${SBFILENAME}
I noticed that some of the lines in the config file start with a
space. I would sug
I did try setting two separate system properties also. But that too doe snot
seem to work. something unique like FILENAME_ for each program
James Stauffer <[EMAIL PROTECTED]> wrote: If you run both programs in the same
JVM then there can be only 1
SBFILENAME value and if both processes set it t
If you run both programs in the same JVM then there can be only 1
SBFILENAME value and if both processes set it than 1 will overwrite
the value of the other. I would suggest using 2 different system
properties.
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> Yes. thats correct. The log files
Yes. thats correct. The log files get mixed up for POC-PROCESS and
POC-VALIDATION. But i set different file names for them dynamically. For eg: In
the case of POC-PROCESS, it will be like : log.poc-process.
and for POC-VALIDATION, it is like : log.poc-validation.
WIll the logs still g
POC-VALIDATION and POC-PROCESS use the same filename and it isn't
supported to have two appenders use the same file. Is that the file
where you get the mixed logs?
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> This is my config file :
>
> # Configuration file for the logging properties.
This is my config file :
# Configuration file for the logging properties.
# The log level hierarchy for log4j is DEBUG < INFO < WARN < ERROR < FATAL
# The name of the logger specified below should be passed as a parameter
# while instantiating the logger.
log4j.logger.RAPID = DEBUG, SMTPR
Can you send your complete config file? What are the various
pScriptName values used? It appears that you are sending everything
to both appenders and that is why you get things mixed.
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> Here is the logger definition :
>
> log4j.logger.POC-VAL
Here is the logger definition :
log4j.logger.POC-VALIDATION = DEBUG, POC-VALIDATION, SMTPPOC-VALIDATION
I do Logger.getLogger(pScriptName) also. But i still do this caching in
addition to it. When i dont specify the log directory for 1 program, it puts
the logs of the program in the
If you call Logger.getLogger() twice with the same parameter then the
same instance will be returned so there is no need to cache it.
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> I do a System set Property for the log file name and create them
> dynamically. I cache the logging instance
Is that the whole config? There are no loggers defined.
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> The config file is as follows :
>
> ##POClose Validation Logs
> log4j.appender.POC-VALIDATION=org.apache.log4j.FileAppender
> log4j.appender.POC-VALIDATION.File=/home/test/log/${FILENA
The config file is as follows :
##POClose Validation Logs
log4j.appender.POC-VALIDATION=org.apache.log4j.FileAppender
log4j.appender.POC-VALIDATION.File=/home/test/log/${FILENAME}
log4j.appender.POC-VALIDATION.Append = false
log4j.appender.POC-VALIDATION.layout=org.apache.log4j.PatternLayo
Post your config.
Also, It appears that you are caching Logger instances. Why are you doing that?
On 4/27/06, Vin Karthik <[EMAIL PROTECTED]> wrote:
> I missed few details in the previous mail.
>
> public static Hashtable mht = new Hashtable()
>
> mLogger is the class member variable.
>
> Vin
I missed few details in the previous mail.
public static Hashtable mht = new Hashtable()
mLogger is the class member variable.
Vin Karthik <[EMAIL PROTECTED]> wrote:
Hi,
I am facing a problem with log4j. I am running 2 seperate programs. Both the
programs use different log files 1.t
16 matches
Mail list logo