0

I've been doing, or at least trying, to do all of the logging within the controllers. But where should logging really occur, especially if the logging involves both server-side and client-side logging end points?

Note: this isn't homework.

user1329572
  • 6,176
  • 5
  • 29
  • 39
  • 1
    possible duplicate of [Logging in Java and in general: Best Practices?](http://stackoverflow.com/questions/906233/logging-in-java-and-in-general-best-practices) – user1329572 Jun 09 '12 at 20:14

1 Answers1

1

Logging should occur where you are doing what you are trying to log. If you are running a query, add logging in your DAO class.

Have a look at Logging in Java and in general: Best Practices? for some best practices.

Community
  • 1
  • 1
stevedbrown
  • 8,862
  • 8
  • 43
  • 58