3939</ div > < div class ="row ">
4040 < div class ="col-md-8 ">
4141 < h1 > Logging</ h1 >
42- < p > Logging is a mechanism for monitoring web applications written with a
43- web framework. Runtime exceptions that prevent code from running are
44- important to log to investigate and fix the source of the problems.
45- Informational and debugging logging also helps to understand how the
46- application is performing even if code is working as intended.</ p >
42+ < p > Logging saves output such as errors, warnings and event information to
43+ files for debugging purposes. </ p >
44+ < h2 > Why is logging important?</ h2 >
45+ < p > Runtime exceptions that prevent code from running are important to log to
46+ investigate and fix the source of the problems. Informational and debugging
47+ logging also helps to understand how the application is performing even if
48+ code is working as intended.</ p >
49+ < h2 > Logging levels</ h2 >
4750< p > Logging is often grouped into several categories:</ p >
4851< ol >
4952< li > Information</ li >
@@ -52,15 +55,7 @@ <h1>Logging</h1>
5255< li > Error</ li >
5356</ ol >
5457< p > Logging errors that occur while a web framework is running is crucial to
55- understanding how your application is performing.
56- < a href ="http://raven.readthedocs.org/en/latest/ "> Raven</ a > is a Python client for the
57- < a href ="https://github.com/getsentry/sentry "> Sentry</ a > exception logging and
58- aggregation application. Raven provides the way to send exceptions to
59- Sentry, which should be deployed on a separate server from your production
60- infrastructure. Raven can also be used by Python scripts to send other
61- log data to Sentry for aggregation. Sentry provides a clean web application
62- interface for viewing the exceptions. Sentry can also be configured with a
63- mail plugin to send emails when exceptions occur.</ p >
58+ understanding how your application is performing. </ p >
6459< h2 > Logging Aggregators</ h2 >
6560< p > When you are running your application on several servers, it is helpful
6661to have a monitoring tool called a "logging aggregator". You can configure
@@ -94,6 +89,13 @@ <h3>Log Aggregator Third Party Services</h3>
9489< h3 > Open Source Log Aggregators</ h3 >
9590< ul >
9691< li >
92+ < p > < a href ="http://raven.readthedocs.org/en/latest/ "> Raven</ a > is a Python client for the
93+ < a href ="https://github.com/getsentry/sentry "> Sentry</ a > exception logging and
94+ aggregation application. Raven can also be used by Python scripts to send
95+ other log data to Sentry for aggregation. Sentry provides a clean web
96+ application interface for viewing the exceptions. </ p >
97+ </ li >
98+ < li >
9799< p > < a href ="http://graylog2.org/ "> Graylog2</ a > provides a central server for log
98100 aggregation as well as a GUI for browsing and searching through log events.
99101 There are libraries for most major languages, including python. Saves data
0 commit comments