The Composite pattern is a design pattern that allows to treat a group of objects as a single instance of an object. It is one of the Gang of Four's structural design patterns.
Example below demonstrate how Composite can be used to log to multiple places using single Log invocation. This approach a...