Logging unification 89/35289/3
authorTomasz Iwanek <t.iwanek@samsung.com>
Thu, 5 Feb 2015 11:44:33 +0000 (12:44 +0100)
committerTomasz Iwanek <t.iwanek@samsung.com>
Wed, 18 Feb 2015 09:12:30 +0000 (10:12 +0100)
commitc249efae775102fa4c294973c5c26bf006646892
tree446d9fcefcd8bd74bf2d7153e34218067e3db65a
parent75e792b838c4f086ae5f525bb000f4be137e9a94
Logging unification

Because of existing idea of tagging step in logs,
this commit introduces one more macro:

SCOPE_LOG_TAG(TAG)

Defining this macro in given scope will change log tag of that
scope.

Example:

class StepXYZ : public Step {
  void func() {
    LOG(DEBUG) << "Status is ...";
  }

  SCOPE_LOG_TAG(XYZ)
};

Every log from class StepXYZ will be place with "XYZ" tag.

Change-Id: I8a8e192b0a746dae19a961e238a798b9b2c0c4b9
38 files changed:
src/common/app_installer.cc
src/common/app_installer.h
src/common/pkgmgr_signal.cc
src/common/security_registration.cc
src/common/step/step_copy.cc
src/common/step/step_copy.h
src/common/step/step_generate_xml.cc
src/common/step/step_generate_xml.h
src/common/step/step_parse.cc
src/common/step/step_parse.h
src/common/step/step_record.cc
src/common/step/step_record.h
src/common/step/step_remove.cc
src/common/step/step_remove.h
src/common/step/step_revoke_security.cc
src/common/step/step_revoke_security.h
src/common/step/step_security.cc
src/common/step/step_security.h
src/common/step/step_signal.cc
src/common/step/step_signal.h
src/common/step/step_signature.h
src/common/step/step_unregister.cc
src/common/step/step_unregister.h
src/common/step/step_unzip.cc
src/common/step/step_unzip.h
src/common/utils.cc
src/signature/signature_validator.cc
src/signature/signature_validator.h
src/utils/logging.h
src/utils/values.cc
src/wgt/step/step_parse.cc
src/wgt/step/step_parse.h
src/wgt/step/step_symbolic_link.cc
src/wgt/step/step_symbolic_link.h
src/widget-manifest-parser/application_data.cc
src/widget-manifest-parser/manifest_handlers/permissions_handler.cc
src/widget-manifest-parser/manifest_handlers/tizen_application_handler.cc
src/widget-manifest-parser/manifest_handlers/widget_handler.cc