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unit/utc_ApplicationFW_dlog_print_func.c b/TC/unit/utc_ApplicationFW_dlog_print_func.c
new file mode 100644
index 0000000..517edc4
--- /dev/null
+++ b/TC/unit/utc_ApplicationFW_dlog_print_func.c
@@ -0,0 +1,66 @@
+#include
+#include "dlog.h"
+#define LOG_BUF_SIZE 1024
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_ApplicationFW_dlog_print_func_01(void);
+static void utc_ApplicationFW_dlog_print_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_ApplicationFW_dlog_print_func_01, POSITIVE_TC_IDX },
+ { utc_ApplicationFW_dlog_print_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+//static int pid;
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+
+/**
+ * @brief Positive test case of dlog_print()
+ */
+static void utc_ApplicationFW_dlog_print_func_01(void)
+{
+ int r = 0;
+
+ r = dlog_print(DLOG_DEBUG, "DLOG_TEST", "dlog test message for tetware\n");
+
+ if (r<0) {
+ tet_printf("dlog_print() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init dlog_print()
+ */
+static void utc_ApplicationFW_dlog_print_func_02(void)
+{
+ int r = 0;
+
+ r = dlog_print(DLOG_UNKNOWN, "DLOG_TEST", "dlog test message for tetware\n");
+
+ if (r>=0) {
+ tet_printf("dlog_print() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
diff --git a/TC/unit/utc_ApplicationFW_dlog_vprint_func.c b/TC/unit/utc_ApplicationFW_dlog_vprint_func.c
new file mode 100644
index 0000000..eb736a2
--- /dev/null
+++ b/TC/unit/utc_ApplicationFW_dlog_vprint_func.c
@@ -0,0 +1,76 @@
+#include
+#include
+#include "dlog.h"
+#define LOG_BUF_SIZE 1024
+static void startup(void);
+static void cleanup(void);
+
+void (*tet_startup)(void) = startup;
+void (*tet_cleanup)(void) = cleanup;
+
+static void utc_ApplicationFW_dlog_vprint_func_01(void);
+static void utc_ApplicationFW_dlog_vprint_func_02(void);
+
+enum {
+ POSITIVE_TC_IDX = 0x01,
+ NEGATIVE_TC_IDX,
+};
+
+struct tet_testlist tet_testlist[] = {
+ { utc_ApplicationFW_dlog_vprint_func_01, POSITIVE_TC_IDX },
+ { utc_ApplicationFW_dlog_vprint_func_02, NEGATIVE_TC_IDX },
+ { NULL, 0 }
+};
+
+static int pid;
+char *fmt = "dlog test message for tetware\n";
+
+static void startup(void)
+{
+}
+
+static void cleanup(void)
+{
+}
+/**
+ * @brief Positive test case of dlog_vprint()
+ */
+void utc_ApplicationFW_dlog_vprint_func_01(void)
+{
+ int r = 0;
+ char buf[LOG_BUF_SIZE];
+ va_list ap;
+
+ /* va_start(ap, fmt);*/
+
+ r = dlog_vprint(DLOG_DEBUG, "DLOG_TEST", buf, ap );
+ /* va_end(ap);*/
+
+ if (r<0) {
+ tet_printf("dlog_vprint() failed in positive test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
+
+/**
+ * @brief Negative test case of ug_init dlog_vprint()
+ */
+void utc_ApplicationFW_dlog_vprint_func_02(void)
+{
+ int r = 0;
+ char buf[LOG_BUF_SIZE];
+ va_list ap;
+// va_start(ap, fmt);
+
+ r = dlog_vprint(DLOG_UNKNOWN, "DLOG_TEST", fmt, ap );
+// va_end(ap);
+
+ if (r>=0) {
+ tet_printf("dlog_vprint() failed in negative test case");
+ tet_result(TET_FAIL);
+ return;
+ }
+ tet_result(TET_PASS);
+}
diff --git a/build.sh b/build.sh
deleted file mode 100755
index c981648..0000000
--- a/build.sh
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-### WARNING: DO NOT CHANGE CODES from HERE !!! ###
-#import setup
-cd `dirname $0`
-_PWD=`pwd`
-pushd ./ > /dev/null
-while [ ! -f "./xo-setup.conf" ]
-do
- cd ../
- SRCROOT=`pwd`
- if [ "$SRCROOT" == "/" ]; then
- echo "Cannot find xo-setup.conf !!"
- exit 1
- fi
-done
-popd > /dev/null
-. ${SRCROOT}/xo-setup.conf
-cd ${_PWD}
-### WARNING: DO NOT CHANGE CODES until HERE!!! ###
-
-CFLAGS="${CFLAGS}"
-export VERSION=1.0
-
-if [ "$MACHINE" == "volans" ]; then
- #export DEVELOP_VER=yes
- CFLAGS="${CFLAGS} -D__VOLANS"
-fi
-
-
-if [ $1 ];
-then
- run make $1 || exit 1
-else
- mkdir -p /opt/etc/
-# mkdir -p /opt/data/.debug/symbol/
- if [ -z "$USE_AUTOGEN" ]; then
- run ./autogen.sh || exit 1
- run ./configure --prefix=$PREFIX || exit 1
- fi
- run make || exit 1
- run make install || exit 1
- mkdir -p ${PREFIX}/bin/
- if [ "$DISTRO" = "vodafone-sdk" ]; then
- make_pkg_option="{make_pkg_option} --postjob=./make_openapi.sh"
- fi
- run make_pkg.sh ${make_pkg_option} || exit 1
-fi
-
diff --git a/configure.ac b/configure.ac
index c5af179..cbd9996 100755
--- a/configure.ac
+++ b/configure.ac
@@ -12,22 +12,55 @@ PLATFORM_INIT
# Checks for programs.
dnl AC_PROG_CXX
+m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
AC_PROG_CC
AC_PROG_GCC_TRADITIONAL
AC_PROG_LIBTOOL
-# checks arch
-AM_CONDITIONAL(DEVELOP_VER, test $DEVELOP_VER = yes)
-
-#AM_CONDITIONAL([ARCH_IS_ARM], [test "x$ARCH" = "xarm"])
-if test "x$ARCH" = "xarm" ; then
- DLOG_CFLAGS="-D__arm__"
-else
- DLOG_CFLAGS=
+# check for libsystemd-journal
+AC_ARG_WITH([systemd-journal],
+ AS_HELP_STRING([--with-systemd-journal], [check for systemd-journal]),
+ [], [with_systemd_journal=check])
+have_systemd_journal=no
+if test "x$with_systemd_journal" != "xno"; then
+ PKG_CHECK_MODULES(systemd_journal, [libsystemd-journal],
+ [AC_DEFINE(HAVE_SYSTEMD_JOURNAL, 1, [Define if systemd journal is available])
+ have_systemd_journal=yes],
+ have_systemd_journal=no)
+ if test "x$have_systemd_journal" = "xno" -a "x$with_systemd_journal" = "xyes"; then
+ AC_MSG_ERROR([systemd journal requested but libraries not found])
+ fi
fi
+AM_CONDITIONAL(HAVE_SYSTEMD_JOURNAL, [test "x$have_systemd_journal" = "xyes"])
+if test "x$have_systemd_journal" = "xyes" ; then
+ systemd_journal=systemd-journal
+fi
+AC_SUBST(systemd_journal)
-AC_SUBST(DLOG_CFLAGS)
-
+# check binary type for tizen engineer mode
+AC_ARG_ENABLE([engineer_mode],
+ AS_HELP_STRING([--enable-engineer_mode Turn on engineer_mode]),
+ [engineer_mode=yes],
+ engineer_mode=no)
+if test "x$engineer_mode" = "xyes" ; then
+ DEBUG_CFLAGS+=" -DTIZEN_ENGINEER_MODE"
+fi
+AC_ARG_ENABLE([debug_enable],
+ AS_HELP_STRING([--enable-debug_enable Turn on debug_enable]),
+ [debug_enable=yes],
+ debug_enable=no)
+if test "x$debug_enable" = "xyes" ; then
+ DEBUG_CFLAGS+=" -DTIZEN_DEBUG_ENABLE"
+fi
+# check for fatal_on
+AC_ARG_ENABLE([fatal_on],
+ AS_HELP_STRING([--enable-fatal_on Turn on fatal assertion]),
+ [fatal_on=yes],
+ fatal_on=no)
+if test "x$fatal_on" = "xyes" ; then
+ DEBUG_CFLAGS+=" -DFATAL_ON"
+fi
+AC_SUBST(DEBUG_CFLAGS)
dnl AC_SUBST(ACLOCAL_AMFLAGS, "-I m4")
# Checks for libraries.
# Checks for header files.
@@ -48,6 +81,9 @@ AC_FUNC_MALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([memset])
+PKG_PROG_PKG_CONFIG
+PKG_CHECK_MODULES([CAPI_BASE_COMMON], [capi-base-common])
+
# output files
AC_CONFIG_FILES([Makefile dlog.pc])
AC_OUTPUT
diff --git a/debian/changelog b/debian/changelog
deleted file mode 100644
index 88b3459..0000000
--- a/debian/changelog
+++ /dev/null
@@ -1,15 +0,0 @@
-dlog (0.4.1-0) unstable; urgency=low
-
- * change version
- * Git: pkgs/d/dlog
- * Tag: dlog_0.4.1-0
-
- -- Jeesun Kim Sat, 10 Dec 2011 09:26:45 +0900
-
-dlog (0.1.0-0) unstable; urgency=low
-
- * Initial Release.
- * Git: pkgs/d/dlog
- * Tag: dlog_0.1.0-0
-
- -- Jeesun Kim Sat, 10 Dec 2011 09:26:45 +0900
diff --git a/debian/compat b/debian/compat
deleted file mode 100755
index 7ed6ff8..0000000
--- a/debian/compat
+++ /dev/null
@@ -1 +0,0 @@
-5
diff --git a/debian/control b/debian/control
deleted file mode 100755
index 23b134b..0000000
--- a/debian/control
+++ /dev/null
@@ -1,32 +0,0 @@
-Source: dlog
-Section: devel
-Priority: extra
-Maintainer: Youngjoo Park
-Uploaders: Youmin Ha , Noha Park , Youngkyeong Yun
-Build-Depends: debhelper (>= 5), autotools-dev
-Standards-Version: 0.1.0
-
-Package: dlog-dev
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libdlog-0
-Description: dlog API library (Development)
-XB-Generate-Docs: yes
-
-Package: libdlog-0
-Section: libs
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: logging library (shared object)
-
-Package: dlogutil-bin
-Section: devel
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: print log data to the screen
-
-Package: dlog-0-dbg
-Section: debug
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, libdlog-0, dlogutil-bin
-Description: logging library, dlogutil dbg package (unstripped)
diff --git a/debian/copyright b/debian/copyright
deleted file mode 100755
index 90ef6b2..0000000
--- a/debian/copyright
+++ /dev/null
@@ -1,8 +0,0 @@
-Copyright (c) 2007 The Android Open Source Project
-
-This program is free software; you can redistribute it and/or modify
-it under the terms of the Apache License version 2.0.
-
-The full text of the Apache 2.0 can be found in
-/usr/share/common-licenses.
-
diff --git a/debian/dirs b/debian/dirs
deleted file mode 100755
index ca882bb..0000000
--- a/debian/dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/sbin
diff --git a/debian/dlog-dev.install.in b/debian/dlog-dev.install.in
deleted file mode 100755
index bad5cf4..0000000
--- a/debian/dlog-dev.install.in
+++ /dev/null
@@ -1,4 +0,0 @@
-@PREFIX@/include/dlog/dlog.h
-@PREFIX@/lib/libdlog.la
-@PREFIX@/lib/pkgconfig/*.pc
-
diff --git a/debian/dlogutil-bin.install.in b/debian/dlogutil-bin.install.in
deleted file mode 100755
index cc4a298..0000000
--- a/debian/dlogutil-bin.install.in
+++ /dev/null
@@ -1,2 +0,0 @@
-@PREFIX@/bin/dlogutil
-/etc/rc.d/init.d/dlog.sh
diff --git a/debian/dlogutil-bin.postinst.in b/debian/dlogutil-bin.postinst.in
deleted file mode 100644
index 66bafcf..0000000
--- a/debian/dlogutil-bin.postinst.in
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-#Add boot sequence script
-rm -f /etc/rc.d/rc3.d/S05dlog /etc/rc.d/rc5.d/S05dlog
-ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc3.d/S05dlog
-ln -s /etc/rc.d/init.d/dlog.sh /etc/rc.d/rc5.d/S05dlog
diff --git a/debian/docs b/debian/docs
deleted file mode 100755
index e69de29..0000000
diff --git a/debian/libdlog-0.install.in b/debian/libdlog-0.install.in
deleted file mode 100755
index e4eff1a..0000000
--- a/debian/libdlog-0.install.in
+++ /dev/null
@@ -1 +0,0 @@
-@PREFIX@/lib/libdlog.so*
diff --git a/debian/rules b/debian/rules
deleted file mode 100755
index c931acc..0000000
--- a/debian/rules
+++ /dev/null
@@ -1,135 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_GNU_OS)
-
-CFLAGS ?= -Wall -g
-LDFLAGS ?=
-PREFIX ?= /usr
-DATADIR ?= /opt
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
-# architecture is not arm
-ifneq (, $(findstring arm, $(DEB_HOST_ARCH)))
- # do something here
-else
- # do something here for arm architecture
-endif
-
-LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed -Wl,--no-undefined
-
-#preconfig:
-# autoconf
-# automake
-
-config.status: configure.ac Makefile.am
- dh_testdir
- # Add here commands to configure the package.
- ./autogen.sh
- CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --prefix=$(PREFIX)
-
-build: build-stamp
-
-build-stamp: config.status
- dh_testdir
- touch build-stamp
-
- # Add here commands to compile the package.
- $(MAKE)
- #docbook-to-man debian/ncurses.sgml > ncurses.1
-
- for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
- cat $$f > $${f%.in}; \
- sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
- sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
- done
-
- touch $@
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp
-
- # Add here commands to clean up after the build process.
- -$(MAKE) distclean
-ifneq "$(wildcard /usr/share/misc/config.sub)" ""
- cp -f /usr/share/misc/config.sub config.sub
-endif
-ifneq "$(wildcard /usr/share/misc/config.guess)" ""
- cp -f /usr/share/misc/config.guess config.guess
-endif
-
- for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
- rm -f $${f%.in}; \
- done
-
- dh_clean
-
-install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- # Add here commands to install the package into debian/ncurses.
- $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installchangelogs
- dh_installdocs
- dh_installexamples
- dh_install --list-missing --sourcedir=debian/tmp
-# dh_installmenu
-# dh_installdebconf
-# dh_installlogrotate
-# dh_installemacsen
-# dh_installpam
-# dh_installmime
-# dh_python
-# dh_installinit
-# dh_installcron
-# dh_installinfo
- dh_installman
- dh_link
-# dh_strip
- dh_strip --dbg-package=dlog-0-dbg
- dh_compress
- dh_fixperms
-# dh_perl
- dh_makeshlibs
- dh_installdeb
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
diff --git a/dlog.pc.in b/dlog.pc.in
index 1fcb33b..9d902a1 100755
--- a/dlog.pc.in
+++ b/dlog.pc.in
@@ -6,6 +6,7 @@ includedir=${prefix}/include
Name: dlog
Description: logging service
Version: 1.0
-Requires:
-Libs: -L${libdir} -ldlog -lpthread
+Requires: capi-base-common
+Requires(post): @systemd_journal@
+Libs: -L${libdir} -ldlog -lpthread @systemd_journal_LIBS@ @CAPI_BASE_COMMON_LIBS@
Cflags: -I${includedir}/dlog
diff --git a/dlog.sh b/dlog.sh
deleted file mode 100644
index d189665..0000000
--- a/dlog.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-/usr/bin/dlogutil -r 51200 -n 1 -f /var/log/dlog -v threadtime *:* &
diff --git a/dlogutil.manifest b/dlogutil.manifest
deleted file mode 100644
index 639fc9b..0000000
--- a/dlogutil.manifest
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-
-
-
diff --git a/doc/dlog_doc.h b/doc/dlog_doc.h
new file mode 100755
index 0000000..1d825b1
--- /dev/null
+++ b/doc/dlog_doc.h
@@ -0,0 +1,57 @@
+/*
+ * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TIZEN_SYSTEM_DLOG_DOC_H__
+#define __TIZEN_SYSTEM_DLOG_DOC_H__
+
+/**
+ * @defgroup CAPI_SYSTEM_DLOG dlog
+ * @brief The Dlog API provides functions for sending log output.
+ * @ingroup CAPI_SYSTEM_FRAMEWORK
+ * @section CAPI_SYSTEM_DLOG_HEADER Required Header
+ * \#include
+ *
+ * @section CAPI_SYSTEM_DLOG_OVERVIEW Overview
+ *
+Sending log message to circular buffer. dlog APIs include Priority and Tag. By using priority and Tag, we can easily filtered messages what we want to see.
+priority
+priority level indicates the urgency of log message
+
+
+
+ Priority |
+ Description |
+
+
+ DLOG_DEBUG |
+ Debug messasge. - Log message which developer want to check. |
+
+
+ DLOG_INFO |
+ Information message - Normal operational messages. above of this priority will always be logged. |
+
+
+ DLOG_WARN |
+ Warning messages - Not an error, but indication that an error will occur if action is not taken. |
+
+
+ DLOG_ERROR |
+ Error message - Indicate error. |
+
+
+*
+**/
+#endif /* __TIZEN_SYSTEM_DLOG_DOC_H__ */
diff --git a/include/SLP_Dlog_PG.h b/include/SLP_Dlog_PG.h
deleted file mode 100755
index a108b5f..0000000
--- a/include/SLP_Dlog_PG.h
+++ /dev/null
@@ -1,183 +0,0 @@
-/**
- @ingroup SLP_PG
- @defgroup SLP_PG_Dlog dlog
- @{
-
-Introduction
-Dlog logging service support sending log message to circular log device
-
-dlog Architecture
-@image html SLP_Dlog_PG_image001.png System Architecture of dlog
-
-dlog properties
-Sending log message to circular buffer. dlog APIs include Priority and Tag. By using priority and Tag, we can easily filtered messages what we want to see.
- priority
-priority level incdicates the urgency of log message
-
-
-
- Priority |
- Description |
-
-
- VERBOSE |
- Verbose message. - compiled into application and logged at runtime only when debug mode. on release mode, this log message is strip. |
-
-
- DEBUG |
- Debug messasge. - always compiled into application, but not logged at runtime by default on release mode. on debug mode, this message will be logged at runtime. |
-
-
- INFO |
- Information message - Normal operational messages. above of this priority will always be logged. |
-
-
- WARN |
- Warning messages - not an error, but indication that an error will occur if action is not taken |
-
-
- ERROR |
- Error message - indicate error. |
-
-
- FATAL |
- Fatal message - Should be corrected immediately ( not used yet ) |
-
-
-
- Tag
-Used to identify the source of a log message.
-There is no naming limitation, but do not forget that tag is identification of module. Tag must be distinguishable from other tag.
-Simplified macro like LOGV, LOGD, LOGI, LOGW, LOGE uses declared LOG_TAG constant, so declare a LOG_TAG constant before you use dlog macro is a good convention.
-@code
-#define LOG_TAG "MyApp"
-@endcode
-
-list of dlog macro
-Macro name start with LOG prefix is for application. start with SLOG prefix is for framework, start with RLOG prefix is for radio. each macro write log message to separated log device such as main, system, radio.
-
-sample code
-Using simplified macro with current LOG_TAG
-
-@code
-#define LOG_TAG "YOUR_APP"
-#include
-
-int function () {
- LOGD( "debug message from YOUR_APP \n");
- LOGI( "information message from YOUR_APP \n");
- LOGW( "warning message from YOUR_APP \n");
- LOGE( "error message from YOUR_APP \n");
-}
-@endcode
-
-Using log macro allows you to specify a priority and a tag
-
-@code
-#include
-
-#define TAG_DRM_SVC "drm_svc"
-#define TAG_DRM_WM "drm_wm"
-#define TAG_DRM_OEM "drm_oem"
-
-int function () {
- LOG(LOG_DEBUG,TAG_DRM_SVC, "information message from drm_svc \n");
- LOG(LOG_WARN,TAG_DRM_WM, "warning message from drm_wm \n");
- LOG(LOG_ERROR,TAG_DRM_OEM, "error message from drm_oem \n");
-}
-@endcode
-
-Using log macro allows you to pass in a varargs
-
-@code
-#include
-
-#define TAG_DRM_SVC "drm_svc"
-#define TAG_DRM_WM "drm_wm"
-#define TAG_DRM_OEM "drm_oem"
-
-int function (const char *fmt, ...) {
- va_list ap;
- va_start(ap, fmt);
- LOG_VA(LOG_DEBUG,TAG_DRM_WM, fmt, args);
- va_end(ap);
-}
-@endcode
-dlogutil
- Introduction
-You can use dlogutil command to view and follow the contents of the log buffers. The general usage is :
-@code
-dlogutil [