Using an XML file has the big advantage that the log settings can be changed without recompiling the application. One can configure a logging framework by an XML file or programmatically. All above mentioned frameworks are open source projects. Additionally, by using predefined layouts or defining custom layouts there are manifold possibilities to format the log output.ĭue to the variety of their various output channels, the power of their configuration and their maturity, logging frameworks are preferable to own logging codes being self-written. Logging frameworks offer very powerful and flexible ways to control, whether the messages are to be sent to multiple targets or if some messages should be sent to special targets or even dropped, depending on the severity of the message or the component, which created the message. to a file, to the network, into a database or as an E-Mail). Only the configuration of the logging framework defines, where this message is written to (e.g. The developer is only required to write a simple line where he wants to create a log message: Logging Frameworks are code libraries, which help developers to add flexible log output to their application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |