forked from tmtsoftware/csw-prototype
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathroot-doc.txt
More file actions
18 lines (13 loc) · 1.03 KB
/
root-doc.txt
File metadata and controls
18 lines (13 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
== Log Service ==
The Log Service package contains the config files for logging and optional, external applications
(Logstash, Elasticsearch, Kibana) to view and process the log information.
A special logger PrefixedActorLogging is
provided for Akka actors that implement TMT components, such as HCDs and assemblies.
It inserts an [[http://logback.qos.ch/manual/mdc.html MDC]] prefix field into the log, where prefix
is the component prefix, which is made up of the subsystem name, followed by a dot and the rest of the component prefix.
The standard logging framework used here is `slf4j` and `logback`. For packages that require `log4j`
(like OPC UA), there is a bridge: `log4j-over-slf4j` that can be used instead of the log4j dependency.
=== Configuring Logging ===
Applications that wish to log can add this project as a dependency, so that the logback.xml config file
will be found. This configures logging to go to the console and, if the system property "application-name" is
defined, to ${application-name}.log in the current directory.