The log service is as is dedicated to writing log records to file and this has so far been the only destination for log records. Several attributes in the configuration object and log stream objects are dedicated for configuration of this file handling. This is legacy.
Now, we introduce a generic way of handling alternative destinations of log records. Legacy handling of log records will not be changed.
Find more information in attachement.
Tickets: #2200
Tickets: #2258
Tickets: #2266
Tickets: #2580
Wiki: NEWS-5.2.0
The PRI field of the message ought to be filled in with a severity taken from the SaLogSeverityT field in the SAF log message header, and some appropriate facility (probably 16 - "local use 0").
The STRUCTURED-DATA field should countain a meta sequenceId parameter containing a sequence number of each message, so that it is possible to detect message loss.
The MSGID should contain a hash of the log stream name.
An increment implementing support for the new configuration attributes 'logRecordDestinationConfiguration' and 'logRecordDestinationStatus' (only OpenSafLogCurrentConfig class) is sent for review by the community.
Will be pushed separately when acked
I will submit Unit test & updated PR soon.
Has just summited Unit tests.
changeset: 8611:15ea36eab483
tag: tip
user: Lennart Lund lennart.lund@ericsson.com
date: Thu Feb 23 12:46:32 2017 +0100
summary: lgs: Add new multivalue attributes to configuration handler [#2258]
rev: 15ea36eab4835ed048e4f1d28013d27888437d9b
Related
Tickets:
#2258changeset: 8631:5e2c0a0cfdba
tag: tip
user: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
date: Thu Feb 16 17:22:13 2017 +0700
summary: log: add unit tests to verify outer interfaces [#2258]
changeset: 8630:972e56fc71ec
user: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
date: Wed Feb 15 15:07:09 2017 +0700
summary: log: add UML test case to verify alternative destination [#2258]
changeset: 8629:532c51f8d297
user: Vu Minh Nguyen vu.m.nguyen@dektech.com.au
date: Thu Feb 23 14:37:32 2017 +0700
summary: log: add alternative destinations of log records [#2258]
Related
Tickets:
#2258