• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

log entries with java logging

 
jesal dosa
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I hope you can help. I am just writing the methods to my data class and for testing purposes i have a main method



if i run this method on to the console it displays
checking if this logging works
test values
test values

if i run this in the debugger with a break point at the logging statement
then i get the correct behaviour

test values
test values
checking if this logging works

I would expect it to print values in the correct order this will give me grief in when i need to test the locking. Any ideas on how to get standard behaviour with the logging

Kind Regards

Jesal
 
Herman Schelti
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

just use the logger for your logging (don't mix with System.out)

Herman
[ December 16, 2008: Message edited by: Herman Scheltinga ]
 
jesal dosa
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks will do!, I was just curious about this behaviour. but i wont mix and match the two
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic