My FIRST Production Release!

This is my first ‘real’ project and just went into production* this morning. The only code issue we ran into was a log4j.properties file. There’s a big difference between how it handles forward slashes (“/”) and backward slashes (“\”).

<param name=”File” value=”E:\WAS_Logs\projectName\treasury.log”>
vs
<param name=”File” value=”E:/WAS_Logs/projectName/treasury.log”>

The first is wrong. the \W, \I, and \t (tab) was completely ignored by log4j. The second is how it should be done!

Why did this happen? I was copying and pasting file path from Windows Explorer. IT ALWAYS USES A BACKSLASH! Not to blame it; I simply should have been more careful.

*production: real world, real users, real life.

Leave a Reply

Your email address will not be published. Required fields are marked *

Solve this: Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.