0

In Java, What are responsibilities of ValueObject? Is it reasonable for ValueObject to import LOGGER components?

Haven Lin
  • 176
  • 1
  • 16

1 Answers1

1

Since a VO is supposed to represent a pure value without any specific logic, it really shouldn't bother with any logging components.

If you need to log the contents of the VO, it should be done where it's used, not inside the VO itself.

Kayaman
  • 72,141
  • 5
  • 83
  • 121