I am trying to write a server logger using a design pattern, but I'm not sure how it works. Is the design pattern and logger code in the same class, or does the design pattern create a new instance of the logger?