Sorani / javasnoop

Automatically exported from code.google.com/p/javasnoop
0 stars 0 forks source link

Print DateTime in Log File #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Start JavaSnoop
2. Look at js.log file

What is the expected output? What do you see instead?

Expect: [2010-01-21 09:55:23] SwingWorker-pool-3-thread-1 ERROR 
agent.AgentJarCreator - Warning - could not delete working directory!

See: SwingWorker-pool-3-thread-1 ERROR agent.AgentJarCreator - Warning - could 
not delete working directory!

What version of the product are you using? On what operating system?

FINAL on WinXP SP3

Please provide any additional information below.

Arshan is still my hero :-) :-) :-) :-)

Original issue reported on code.google.com by jon.pas...@aspectsecurity.com on 21 Jan 2011 at 2:55

GoogleCodeExporter commented 8 years ago
Yup, it should.

Original comment by arshan.d...@gmail.com on 21 Jan 2011 at 4:17

GoogleCodeExporter commented 8 years ago
Fixed in HEAD, but it may not be time to rejoice. Now most log messages that 
are generated by the main GUI will go to System.out of the target process since 
the GUI is in that target process. I can't introduce log4j as a dependency of 
the agent easily. 

All the GUI messages won't be generated by log4j but they'll still have the 
date/time.

Original comment by arshan.d...@gmail.com on 24 Feb 2011 at 6:53