Object-Oriented Programming · Microsoft · Medium
Problem Create a lightweight logging component with three severity levels: INFO, WARN, and ERROR. The component must let callers change the global minimum severity, route messages either to standard output or to a file, and remain safe when multiple threads log simultaneously. A message should be emitted only when its severity is at least as important as the currently configured global level. Severity is ordered as follows: INFO < WARN < ERROR Interface Implement the…
Checking your access…