Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

log entries with java logging

 
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
 
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
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!