Skip to main content
Tweeted twitter.com/#!/StackProgrammer/status/192751435874709507
added 8 characters in body
Source Link
Danish
  • 585
  • 1
  • 5
  • 8

If I am developing a Java library, is it good practice to issue log statements from within the library's code?

Having logging within the library will make debugging and troubleshooting more transparent. However, on the other hand, I do not like littering my library code with logging statements. Are there any performance implications to consider as well?

If I am developing a Java library, is it good practice to issue log statements from within the library's code?

Having logging within the library will make debugging and troubleshooting more transparent. However, on the other hand, I do not like littering my library code with logging statements. Are there any performance implications to consider?

If I am developing a Java library, is it good practice to issue log statements from within the library's code?

Having logging within the library will make debugging and troubleshooting more transparent. However, on the other hand, I do not like littering my library code with logging statements. Are there any performance implications to consider as well?

Source Link
Danish
  • 585
  • 1
  • 5
  • 8

Should You Log From Library Code?

If I am developing a Java library, is it good practice to issue log statements from within the library's code?

Having logging within the library will make debugging and troubleshooting more transparent. However, on the other hand, I do not like littering my library code with logging statements. Are there any performance implications to consider?