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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

How do you use Logging in your project?

 
Ranch Hand
Posts: 240
2
  • 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
158
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 https://coderanch.com/t/697287/java/Logging-project, 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!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic