Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
    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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

How do you use Logging in your project?

Ranch Hand
Posts: 240
  • Mark post as helpful
  • send pies
  • Report post to moderator
As I know, Spring Boot provides implicit logging, plus if you want you can have a logger 'bean' configured in @Configuration file.
I want to know from you guys who have worked and seen the real projects. How is the logging used in projects nowadays?

I have one more question and it is about Singleton pattern, I know it is anti pattern but interviewers ask about this pattern as it is being used in every project or it seems really useful. I got some information that Loggers, Configuration files, Print Spooling classes can be used as Singleton. Do you create a separate class for Logging?
What makes someone write a Singleton configuration file, as I have learnt the configuration class is loaded by the Spring container itself. Then which configuration class it was referring to?

Thanks in advance.  
Saloon Keeper
Posts: 6441
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue the discussion in, where you have an answer already. I'll add that discussion to the Spring forum and close this one.
My pie came with a little toothpic holding up this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic