When I do log in java. For every log information , It will begin with a title line like this,
Aug 9, 2012 11:19:13 AM com.aures.IBDownload.ContractHistoryDataDownloader logActivity
com.aures.IBDownload.ContractHistoryDataDownloader is the java class name, logActivity is the log name
The text after time is only showed in console. In log file, It’s just time.
Now I want to remove the txt after the time in console as well, because It is so long and repeats every time, so annoying.
Any ideas,Thanks!!
If you’re using log4j, find your log4j.xml or log4j.properties and change the log format. There’ll probably be a character after the date & class (from memory it’s [d] [c] or similar) which will be representing the log file name. Just remove that character & the brackets around it, and you should be right. 🙂