The logging API provides a centralised logging framework for your components. You can register sources of logging, configure log settings and write log data in a consistent and integrated manner. It also provides support for both Diagnostic and Usage (W3C for instance) logging.