enable LOG_LEVEL build option which can filter log in build time.
authorjihwan.seo <jihwan.seo@samsung.com>
Thu, 16 Feb 2017 04:39:59 +0000 (13:39 +0900)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Mon, 13 Mar 2017 17:55:43 +0000 (17:55 +0000)
commite0579f1ddc9bea483bb2d9cfe0d752db9e91ff7f
tree359ac5d12d2c3553d6745021e4c53b93df0fc7f3
parent95d242d63486ab2a1f9c3b7c7161a3ccb85709b6
enable LOG_LEVEL build option which can filter log in build time.

Lite Device has always requirement to reduce memory size.
Also LOGGING build option is not enough for the requirement.
Thru, we need to provide to select log which can include in binary.

ex)
LOGGING=true -> about 2267kbyte (libconnectivity_abstraction,
                                 liboctbstack, libocsrm,
                                 libroutingmanager)
LOGGING=true LOG_LEVEL=ERROR -> 2184kbyte

=> about 82kbyte saving

Change-Id: I1158de8739b2cd8fa961ad6fc3ff8899c410cbce
Signed-off-by: jihwan.seo <jihwan.seo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/17719
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
build_common/SConscript
resource/csdk/logger/SConscript
resource/csdk/logger/include/logger.h