Remove redundant file info from SM dlog logs 00/149800/4
authorPawel Kowalski <p.kowalski2@partner.samsung.com>
Wed, 13 Sep 2017 06:23:59 +0000 (08:23 +0200)
committerZofia Abramowska <z.abramowska@samsung.com>
Wed, 20 Sep 2017 15:09:08 +0000 (17:09 +0200)
commit6a7be9159d22fe651366d8b718e46e948e367949
treed9ba7cf00f1125306298b0ab5b73e456b78689f2
parent5a1533d708d6e9db43ba2355504b8fe244f57b30
Remove redundant file info from SM dlog logs

Security-manager uses code adapted from DPL for logging. Currently
a dlog backed is utilized. Both DPL and dlog include information
like file name, line and function from where the log was triggered.
It lead to redundant file info in logs.

In order to remove this redundant information, dlog macro SLOG was
replaced with the macro called print_system_log. The print_system_log
macro does not add its own set of information (it displays only
a message prepared by the developer). The print_system_log macro is
labeled as an 'internal' in dlog-internal.h header file but in this
case 'internal' means that macro should not be used by applications
but may be used by system/platform deamons.

Also the FormatMessage was modified in order to display a log message
in a dlog style.

Change-Id: I54b9ebe6240a407609512b4906257ec655d0d8a3
src/dpl/log/src/dlog_log_provider.cpp