Link to home
Create AccountLog in
Avatar of dkim18
dkim18

asked on

log4j logger leaving period(.) for trailing white spaces?

Hi,

I have a java application with Apache log4j logger ( using Eclipse IDE).
The logger prints error and ouput onto a file.
When it is run locally, it looks OK

***Method Name ***
Header # of Product
 name1      100
 name 2      2000
*** End of Function ***

But when the java app is run in the IBM mainframe, it shows period, '.' for trailing white  spaces.

***Method Name ***..........................................
Header # of Product.........................................
name1      100.................................................
name 2      2000...............................................
*** End of Function ***......................................

Can't figure out why it is doing that.
Any suggestions??
Thanks.
Avatar of girionis
girionis
Flag of Greece image

What happens in other log files? If you do a System.out will you get the trailing periods as well? Also do you have any other logs apart from log4j? Do they also have trailing periods? I do not think it's a log4j issue, but probably a configuration in the mainframe.
SOLUTION
Avatar of mrcoffee365
mrcoffee365
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of dkim18
dkim18

ASKER

Thanks everyone.

I am new to the mainframe and it is confusing.
I can see that, but it would be odd for log4j to behave differently on a mainframe.  So if those are really log4j lines -- they don't look like log4j, but I'm assuming that you didn't try to reproduce the actual log lines -- then they should be governed by the log4j.properties files just the same as on any OS.
SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Avatar of dkim18

ASKER

girionis,

We are looking at the log file from the mainframe using Endevor.
If you open the log file from vi or emacs do you see the dots?
It might help you more if you look for the log4j.properties file.  Have you looked at the differences in it between the mainframe server and your dev machine?
ASKER CERTIFIED SOLUTION
Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.