Service logging¶
Several services of the Edge Gateway read their logging settings from a file of their own, all written in the same format. This page describes that format once; the pages below give what is proper to each file.
| Service | Component | File |
|---|---|---|
| Edge Gateway controller | Edge Gateway | /etc/ipdiva/gw-controller/logging.conf |
| Port redirection service | Edge Gateway | /etc/ipdiva/cleanroom/redirect/logging.conf |
| Isolated browsing service | Edge Gateway | /etc/ipdiva/cleanroom/isoweb/logging.ini |
| Web recording service | Edge Gateway | /etc/ipdiva/cleanroom/webrecord/logging.ini |
| Session network filtering | Edge Gateway | /etc/cleanroom/filter/logging.conf |
These files set the logs of a service, not the logs of the product
The activity recorded by the platform (sessions, administration actions, access requests) is read in the consoles, not here. What these files tune is the technical logging of the services themselves, which is what the CyberElements Support asks for when a service misbehaves.
Format¶
The files use the configuration format of the Python logging library. Four kinds of section, each one declared in a list before being defined:
| Section | Role |
|---|---|
[loggers], [handlers], [formatters] |
The lists of what the file defines. A name absent from its list is ignored, even if its section exists below. |
[logger_<name>] |
A source of messages. level is the lowest level it emits, handlers where it sends them, qualname the name under which the code asks for it, and propagate=0 keeps its messages from also going to the root logger. |
[handler_<name>] |
A destination. class is its kind, level the lowest level it accepts, formatter the layout it applies, args its parameters. |
[formatter_<name>] |
The layout of a line. The syslog format starts with the name under which the service writes, which is what you filter on. |
Two destinations are used: SysLogHandler, which writes to the system log through /dev/log, and
FileHandler, which appends to a file of its own.
Two levels have to agree
A message is emitted if the logger accepts it, and written if the handler accepts it
too. Lowering only one of them changes nothing: a logger at INFO sends nothing more to a
handler at DEBUG, and a logger at DEBUG sends nothing more to a handler at INFO. Lower
both to get more, and remember to put them back.
Levels¶
From the most verbose to the least: DEBUG, INFO, WARNING, ERROR, CRITICAL. NOTSET on a
logger means that it inherits the level of the root logger.
Applying a change¶
The file is read when the service starts, so restart the service concerned. Each page below gives its name.
DEBUG fills a disk, and tells what the sessions do
These logs land in /var/log/ipdiva/, next to everything else the platform writes. Turning a
service to DEBUG is a diagnostic step: set it back once the diagnosis is done, and check the
size of the files it produced.
Upgrade¶
These files are configuration files kept on upgrade. If you modified one, the upgrade asks whether
to keep your version or to install the new one, and keeps the version not chosen next to it, with
the extension .dpkg-old or .dpkg-dist.