From 3a58b50f73fff1a193c7fd1bd7d88e2193d5dcb4 Mon Sep 17 00:00:00 2001 From: Tom Harley Date: Tue, 6 Mar 2018 18:24:21 +0000 Subject: Mention logging in report --- Report/texts/logging.tex | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Report/texts/logging.tex (limited to 'Report/texts/logging.tex') diff --git a/Report/texts/logging.tex b/Report/texts/logging.tex new file mode 100644 index 0000000..1f48ff2 --- /dev/null +++ b/Report/texts/logging.tex @@ -0,0 +1,26 @@ +\section{Logging} +Server logging has now been formalised: the functionality is imported into +a file and can then be used to log messages at the selection of urgencies +specified in Protocol BE01~\cite{protocol}. + +These outputs have many configuration options, which ideally will be +incorporated into a global configuration handler in future development. + +\subsection{Standard Logging} +By default, the standard logger logs to three places: +\begin{enumerate} + \item Colourised, human-readable messages are printed to the console. + Any error- or critical-level messages are printed through stderr. + \item More verbose JSON editions of messages are written to a basic + logfile. + \item Critical-level messages are additionally written to an extra + logfile. +\end{enumerate} + +\subsection{SQL Query Logging} +A separate logger has been designed for logging the output of +Sequelize~\cite{sequelize}. Since Protocol BE01 does not specify that they +should be retreivable, the output queries can be stored with less associated +metadata. In addition, Sequelize can output the total required time to +process the query, which is stored in the log for future use as profiling +data. -- cgit v1.2.1