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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How do you use Logging in your project?

Ranch Hand
Posts: 214
  • 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: 5592
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.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!