aboutsummaryrefslogtreecommitdiff
path: root/Report/texts/logging.tex
diff options
context:
space:
mode:
authorTom Harley2018-04-10 09:31:58 +0100
committerTom Harley2018-04-10 09:31:58 +0100
commit44a943dcefac313011c57d125b78bebf36d11d49 (patch)
treee4b4f981ad96ec99d0bad17a87ec991c3ed2bda5 /Report/texts/logging.tex
parentChange minor report things (diff)
downloadmedicine-44a943dcefac313011c57d125b78bebf36d11d49.tar.gz
medicine-44a943dcefac313011c57d125b78bebf36d11d49.zip

Rename folder ‘Report’ to ‘report’

Diffstat (limited to 'Report/texts/logging.tex')
-rw-r--r--Report/texts/logging.tex38
1 files changed, 0 insertions, 38 deletions
diff --git a/Report/texts/logging.tex b/Report/texts/logging.tex
deleted file mode 100644
index d0a7255..0000000
--- a/Report/texts/logging.tex
+++ /dev/null
@@ -1,38 +0,0 @@
-\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.
-
-\subsection{Motivation}
-Since basic server functionality has been implemented, the errors produced
-will likely be caused by difficult-to-debug problems, such as edge-cases or
-data races. With a verbose and thorough logging system, these problems
-should be much easier to detect and rectify.
-
-In addition, Protocol BE01~\cite{protocol} requires of the backend support
-for receiving and storing logs from other services. The introduction of a
-well-implemented logging system abstracts this from the common use-case of
-logging while keeping powerful functionality of forwarding and fetching logs
-available for when it is needed.