Revise log related code 38/245038/4 submit/tizen/20201012.060154
authorJeongmo Yang <jm80.yang@samsung.com>
Tue, 29 Sep 2020 11:11:52 +0000 (20:11 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 12 Oct 2020 02:47:49 +0000 (11:47 +0900)
[Version] 0.3.28
[Issue Type] Log

Change-Id: I1ec4f130c79f6e1975585a841b8047f9d2c51f23
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
include/recorder_private.h
packaging/capi-media-recorder.spec
src/recorder.c

index c5e9418..9535ff8 100644 (file)
@@ -37,6 +37,51 @@ extern "C" {
        param.value.value_##msg_type = set_value; \
 }
 
+#define REC_LOG_CRITICAL(format, args...) \
+       do { \
+               if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_CRITICAL) \
+                       LOGF(format, ##args); \
+       } while (0)
+
+#define REC_LOG_ERROR(format, args...) \
+       do { \
+               if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_ERROR) \
+                       LOGE(format, ##args); \
+       } while (0)
+
+#define REC_LOG_WARNING(format, args...) \
+       do { \
+               if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_WARNING) \
+                       LOGW(format, ##args); \
+       } while (0)
+
+#define REC_LOG_INFO(format, args...) \
+       do { \
+               if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_INFO) \
+                       LOGI(format, ##args); \
+       } while (0)
+
+#define REC_LOG_DEBUG(format, args...) \
+       do { \
+               if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_DEBUG) \
+                       LOGD(format, ##args); \
+       } while (0)
+
+#define REC_LOG_VERBOSE(format, args...) \
+       do { \
+               if (g_mmcam_log_level >= RECORDER_LOG_LEVEL_VERBOSE) \
+                       LOGD("[V] "format, ##args); \
+       } while (0)
+
+enum {
+       RECORDER_LOG_LEVEL_CRITICAL = 0,
+       RECORDER_LOG_LEVEL_ERROR,
+       RECORDER_LOG_LEVEL_WARNING,
+       RECORDER_LOG_LEVEL_INFO,
+       RECORDER_LOG_LEVEL_DEBUG,
+       RECORDER_LOG_LEVEL_VERBOSE
+};
+
 enum {
        _RECORDER_GET_INT_STATE = 0,
        _RECORDER_GET_INT_VIDEO_RESOLUTION,
index 38adef4..33514bc 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-recorder
 Summary:    A Recorder API
-Version:    0.3.27
+Version:    0.3.28
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 0d3f92a..51a6153 100644 (file)
@@ -47,13 +47,15 @@ static GDBusConnection *g_rec_dev_state_changed_cb_conn;
 static guint g_rec_dev_state_changed_cb_subscribe_id;
 static GMutex g_rec_idle_event_lock;
 
+/* log level */
+extern int g_mmcam_log_level;
 
 
 static void __recorder_update_api_waiting(recorder_cb_info_s *cb_info, int api, int value)
 {
        if (!cb_info ||
                api < 0 || api >= MUSE_RECORDER_API_MAX) {
-               LOGE("invalid param %p %d", cb_info, api);
+               REC_LOG_ERROR("invalid param[%p][%d]", cb_info, api);
                return;
        }
 
@@ -61,8 +63,8 @@ static void __recorder_update_api_waiting(recorder_cb_info_s *cb_info, int api,
        cb_info->api_waiting[api] += value;
        g_mutex_unlock(&(cb_info->api_mutex[api]));
 
-       /*LOGD("api %d, value %d, waiting %d",
-               api, value, cb_info->api_waiting[api]);*/
+       REC_LOG_DEBUG("api[%d], value[%d], waiting[%d]",
+               api, value, cb_info->api_waiting[api]);
 
        return;
 }
@@ -81,7 +83,7 @@ static void __recorder_device_state_changed_cb(GDBusConnection *connection,
        g_mutex_lock(&g_rec_dev_state_changed_cb_lock);
 
        if (!g_rec_dev_state_changed_cb_list || !param) {
-               LOGW("no callback or NULL param %p", param);
+               REC_LOG_WARNING("no callback or NULL param[%p]", param);
                goto _DONE;
        }
 
@@ -91,7 +93,7 @@ static void __recorder_device_state_changed_cb(GDBusConnection *connection,
        type = value >> 16;
        state = 0x0000ffff & value;
 
-       LOGD("type %d, state %d", type, state);
+       REC_LOG_INFO("type[%d], state[%d]", type, state);
 
        tmp_list = g_rec_dev_state_changed_cb_list;
 
@@ -100,11 +102,11 @@ static void __recorder_device_state_changed_cb(GDBusConnection *connection,
 
                if (info) {
                        if (info->callback) {
-                               LOGD("start id[%d] callback", info->id);
+                               REC_LOG_INFO("start id[%d] callback", info->id);
                                ((recorder_device_state_changed_cb)info->callback)(type, state, info->user_data);
-                               LOGD("returned id[%d] callback", info->id);
+                               REC_LOG_INFO("returned id[%d] callback", info->id);
                        } else {
-                               LOGW("NULL callback for id %d", info->id);
+                               REC_LOG_WARNING("NULL callback for id[%d]", info->id);
                        }
                }
 
@@ -124,20 +126,20 @@ static int _recorder_import_tbm_fd(tbm_bufmgr bufmgr, int fd, tbm_bo *bo, tbm_bo
        tbm_bo_handle tmp_bo_handle = {NULL, };
 
        if (bufmgr == NULL || bo == NULL || bo_handle == NULL || fd < 0) {
-               LOGE("invalid parameter - bufmgr %p, bo %p, bo_handle %p, fd %d",
+               REC_LOG_ERROR("invalid parameter - bufmgr[%p], bo[%p], bo_handle[%p], fd[%d]",
                     bufmgr, bo, bo_handle, fd);
                return false;
        }
 
        tmp_bo = tbm_bo_import_fd(bufmgr, (tbm_fd)fd);
        if (tmp_bo == NULL) {
-               LOGE("bo import failed - bufmgr %p, fd %d", bufmgr, fd);
+               REC_LOG_ERROR("bo import failed - bufmgr[%p], fd[%d]", bufmgr, fd);
                return false;
        }
 
        tmp_bo_handle = tbm_bo_map(tmp_bo, TBM_DEVICE_CPU, TBM_OPTION_READ);
        if (tmp_bo_handle.ptr == NULL) {
-               LOGE("bo map failed %p", tmp_bo);
+               REC_LOG_ERROR("bo map failed[%p]", tmp_bo);
                tbm_bo_unref(tmp_bo);
                tmp_bo = NULL;
                return false;
@@ -147,16 +149,20 @@ static int _recorder_import_tbm_fd(tbm_bufmgr bufmgr, int fd, tbm_bo *bo, tbm_bo
        *bo = tmp_bo;
        *bo_handle = tmp_bo_handle;
 
+       REC_LOG_VERBOSE("import fd[%d] -> bo[%p]", fd, tmp_bo);
+
        return true;
 }
 
 static void _recorder_release_imported_bo(tbm_bo *bo)
 {
        if (bo == NULL || *bo == NULL) {
-               LOGW("NULL bo");
+               REC_LOG_WARNING("NULL bo");
                return;
        }
 
+       REC_LOG_VERBOSE("release bo[%p]", *bo);
+
        tbm_bo_unmap(*bo);
        tbm_bo_unref(*bo);
        *bo = NULL;
@@ -189,32 +195,33 @@ static void _recorder_event_handler_video_encode_decision(recorder_cb_info_s *cb
           tfd[2]: zero copy bo[1]
           tfd[3]: zero copy bo[2] */
        if (!tfd || tfd[0] < 0) {
-               LOGE("invalid fd %d", tfd ? tfd[0] : 0);
+               REC_LOG_ERROR("invalid fd[%d]", tfd ? tfd[0] : 0);
                return;
        }
 
        muse_recorder_msg_get(video_fd, recv_msg);
        muse_recorder_msg_get(num_buffer_fd, recv_msg);
 
-       /*LOGD("video_fd %d, num_buffer_fd %d", video_fd, num_buffer_fd);*/
+       REC_LOG_DEBUG("video_fd[%d], num_buffer_fd[%d], tfd[%d/%d/%d/%d]",
+               video_fd, num_buffer_fd, tfd[0], tfd[1], tfd[2], tfd[3]);
 
        memset(&frame, 0x0, sizeof(recorder_video_data_s));
 
        if (num_buffer_fd < 0 || num_buffer_fd > BUFFER_MAX_PLANE_NUM) {
-               LOGE("invalid num buffer fd %d", num_buffer_fd);
+               REC_LOG_ERROR("invalid num buffer fd[%d]", num_buffer_fd);
                goto _VIDEO_ENCODE_DECISION_CB_HANDLER_DONE;
        }
 
        /* import tbm bo and get virtual address */
        if (!_recorder_import_tbm_fd(cb_info->bufmgr, tfd[0], &bo, &bo_handle)) {
-               LOGE("failed to import fd %d", tfd[0]);
+               REC_LOG_ERROR("failed to import fd[%d]", tfd[0]);
                goto _VIDEO_ENCODE_DECISION_CB_HANDLER_DONE;
        }
 
        if (num_buffer_fd == 0 && tfd[1] >= 0) {
                /* import tbm data_bo and get virtual address */
                if (!_recorder_import_tbm_fd(cb_info->bufmgr, tfd[1], &data_bo, &data_bo_handle)) {
-                       LOGE("failed to import data fd %d", tfd[1]);
+                       REC_LOG_ERROR("failed to import data fd[%d]", tfd[1]);
                        goto _VIDEO_ENCODE_DECISION_CB_HANDLER_DONE;
                }
        }
@@ -225,7 +232,7 @@ static void _recorder_event_handler_video_encode_decision(recorder_cb_info_s *cb
        for (i = 0 ; i < num_buffer_fd ; i++) {
                /* import buffer bo and get virtual address */
                if (!_recorder_import_tbm_fd(cb_info->bufmgr, tfd[i + 1], &buffer_bo[i], &buffer_bo_handle[i])) {
-                       LOGE("failed to import buffer fd %d", tfd[i + 1]);
+                       REC_LOG_ERROR("failed to import buffer fd[%d]", tfd[i + 1]);
                        goto _VIDEO_ENCODE_DECISION_CB_HANDLER_DONE;
                }
        }
@@ -244,12 +251,12 @@ _VIDEO_ENCODE_DECISION_CB_HANDLER_DONE:
                NULL);
        if (send_msg) {
                if (muse_core_msg_send(cb_info->fd, send_msg) <= 0)
-                       LOGE("sending message failed");
+                       REC_LOG_ERROR("sending message failed");
 
                muse_core_msg_free(send_msg);
                send_msg = NULL;
        } else {
-               LOGE("failed to create send msg for fd %d", tfd[0]);
+               REC_LOG_ERROR("failed to create send msg for fd[%d]", tfd[0]);
        }
 
        /* release imported bo and fd */
@@ -276,11 +283,11 @@ _VIDEO_ENCODE_DECISION_CB_HANDLER_DONE:
 static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *recv_msg, muse_recorder_event_e event, int *tfd)
 {
        if (recv_msg == NULL || event >= MUSE_RECORDER_EVENT_TYPE_NUM) {
-               LOGE("invalid parameter - recorder msg %p, event %d", recv_msg, event);
+               REC_LOG_ERROR("invalid parameter - recorder msg[%p], event[%d]", recv_msg, event);
                return;
        }
 
-       /*LOGD("get recorder msg %s, event %d", recv_msg, event);*/
+       REC_LOG_DEBUG("get recorder msg[%s], event[%d]", recv_msg, event);
 
        g_mutex_lock(&cb_info->user_cb_mutex[event]);
 
@@ -289,10 +296,10 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        event != MUSE_RECORDER_EVENT_TYPE_MUXED_STREAM &&
                        event != MUSE_RECORDER_EVENT_TYPE_VIDEO_ENCODE_DECISION) {
                        g_mutex_unlock(&cb_info->user_cb_mutex[event]);
-                       LOGW("NULL callback for event %d, return here", event);
+                       REC_LOG_WARNING("NULL callback for event[%d], return here", event);
                        return;
                } else {
-                       LOGW("NULL callback for event %d, NOT return here", event);
+                       REC_LOG_WARNING("NULL callback for event[%d], NOT return here", event);
                }
        }
 
@@ -346,7 +353,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        muse_recorder_msg_get(previous, recv_msg);
                        muse_recorder_msg_get(current, recv_msg);
 
-                       LOGW("INTERRUPTED - policy %d, state %d -> %d", policy, previous, current);
+                       REC_LOG_WARNING("INTERRUPTED - policy[%d], state[%d] ->[%d]", policy, previous, current);
 
                        ((recorder_interrupted_cb)cb_info->user_cb[event])((recorder_policy_e)policy,
                                (recorder_state_e)previous,
@@ -362,7 +369,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        muse_recorder_msg_get(policy, recv_msg);
                        muse_recorder_msg_get(state, recv_msg);
 
-                       LOGW("INTERRUPT_STARTED - policy %d, state %d", policy, state);
+                       REC_LOG_WARNING("INTERRUPT_STARTED - policy[%d], state[%d]", policy, state);
 
                        ((recorder_interrupt_started_cb)cb_info->user_cb[event])((recorder_policy_e)policy,
                                (recorder_state_e)state, cb_info->user_data[event]);
@@ -380,7 +387,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        char *send_msg = NULL;
 
                        if (!tfd || tfd[0] < 0) {
-                               LOGE("invalid fd %d", tfd ? tfd[0] : 0);
+                               REC_LOG_ERROR("invalid fd[%d]", tfd ? tfd[0] : 0);
                                break;
                        }
 
@@ -393,19 +400,19 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                                        muse_recorder_msg_get(channel, recv_msg);
                                        muse_recorder_msg_get(timestamp, recv_msg);
 
-                                       LOGD("%p, size %d, format %d, channel %d, timestamp %d",
-                                               bo_handle.ptr, size, format, channel, timestamp);
+                                       REC_LOG_DEBUG("size[%d], format[%d], channel[%d], timestamp[%d]",
+                                               size, format, channel, timestamp);
 
                                        ((recorder_audio_stream_cb)cb_info->user_cb[event])((void *)bo_handle.ptr,
                                                size, (audio_sample_type_e)format, channel,
                                                (unsigned int)timestamp, cb_info->user_data[event]);
 
-                                       LOGD("returned");
+                                       REC_LOG_VERBOSE("returned");
 
                                        /* release imported bo */
                                        _recorder_release_imported_bo(&bo);
                                } else {
-                                       LOGE("tbm fd %d import failed", tfd[0]);
+                                       REC_LOG_ERROR("tbm fd[%d] import failed", tfd[0]);
                                }
                        }
 
@@ -416,12 +423,12 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                                NULL);
                        if (send_msg) {
                                if (muse_core_msg_send(cb_info->fd, send_msg) <= 0)
-                                       LOGE("sending message failed");
+                                       REC_LOG_ERROR("sending message failed");
 
                                muse_core_msg_free(send_msg);
                                send_msg = NULL;
                        } else {
-                               LOGE("failed to create send msg for fd %d", audio_fd);
+                               REC_LOG_ERROR("failed to create send msg for fd[%d]", audio_fd);
                        }
 
                        /* close imported fd */
@@ -440,7 +447,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        char *send_msg = NULL;
 
                        if (!tfd || tfd[0] < 0) {
-                               LOGE("invalid fd %d", tfd ? tfd[0] : 0);
+                               REC_LOG_ERROR("invalid fd[%d]", tfd ? tfd[0] : 0);
                                break;
                        }
 
@@ -451,17 +458,17 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                                        muse_recorder_msg_get(size, recv_msg);
                                        muse_recorder_msg_get_int64(offset, recv_msg);
 
-                                       LOGD("%p, size %d, offset %"PRId64, bo_handle.ptr, size, offset);
+                                       REC_LOG_DEBUG("size[%d], offset[%"PRId64"]", size, offset);
 
                                        ((recorder_muxed_stream_cb)cb_info->user_cb[event])((void *)bo_handle.ptr,
                                                size, (unsigned long long)offset, cb_info->user_data[event]);
 
-                                       LOGD("returned");
+                                       REC_LOG_VERBOSE("returned");
 
                                        /* release imported bo */
                                        _recorder_release_imported_bo(&bo);
                                } else {
-                                       LOGE("tbm fd %d import failed", tfd[0]);
+                                       REC_LOG_ERROR("tbm fd[%d] import failed", tfd[0]);
                                }
                        }
 
@@ -472,12 +479,12 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                                NULL);
                        if (send_msg) {
                                if (muse_core_msg_send(cb_info->fd, send_msg) <= 0)
-                                       LOGE("sending message failed");
+                                       REC_LOG_ERROR("sending message failed");
 
                                muse_core_msg_free(send_msg);
                                send_msg = NULL;
                        } else {
-                               LOGE("failed to create send msg for fd %d", tfd[0]);
+                               REC_LOG_ERROR("failed to create send msg for fd[%d]", tfd[0]);
                        }
 
                        /* close imported fd */
@@ -512,7 +519,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        if (((recorder_supported_audio_encoder_cb)cb_info->user_cb[event])((recorder_audio_codec_e)codec, cb_info->user_data[event]) == false) {
                                cb_info->user_cb[event] = NULL;
                                cb_info->user_data[event] = NULL;
-                               /*LOGD("stop foreach callback for SUPPORTED_AUDIO_ENCODER");*/
+                               REC_LOG_DEBUG("stop foreach callback for SUPPORTED_AUDIO_ENCODER");
                        }
                        break;
                }
@@ -525,7 +532,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        if (((recorder_supported_file_format_cb)cb_info->user_cb[event])((recorder_file_format_e)format, cb_info->user_data[event]) == false) {
                                cb_info->user_cb[event] = NULL;
                                cb_info->user_data[event] = NULL;
-                               /*LOGD("stop foreach callback for SUPPORTED_FILE_FORMAT");*/
+                               REC_LOG_DEBUG("stop foreach callback for SUPPORTED_FILE_FORMAT");
                        }
                        break;
                }
@@ -538,7 +545,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        if (((recorder_supported_video_encoder_cb)cb_info->user_cb[event])((recorder_video_codec_e)codec, cb_info->user_data[event]) == false) {
                                cb_info->user_cb[event] = NULL;
                                cb_info->user_data[event] = NULL;
-                               /*LOGD("stop foreach callback for SUPPORTED_VIDEO_ENCODER");*/
+                               REC_LOG_DEBUG("stop foreach callback for SUPPORTED_VIDEO_ENCODER");
                        }
                        break;
                }
@@ -553,7 +560,7 @@ static void _recorder_client_user_callback(recorder_cb_info_s *cb_info, char *re
                        if (((recorder_supported_video_resolution_cb)cb_info->user_cb[event])(width, height, cb_info->user_data[event]) == false) {
                                cb_info->user_cb[event] = NULL;
                                cb_info->user_data[event] = NULL;
-                               /*LOGD("stop foreach callback for SUPPORTED_VIDEO_RESOLUTION");*/
+                               REC_LOG_DEBUG("stop foreach callback for SUPPORTED_VIDEO_RESOLUTION");
                        }
                        break;
                }
@@ -571,7 +578,7 @@ static gboolean _recorder_idle_event_callback(gpointer data)
        recorder_idle_event_s *rec_idle_event = (recorder_idle_event_s *)data;
 
        if (rec_idle_event == NULL) {
-               LOGE("rec_idle_event is NULL");
+               REC_LOG_ERROR("rec_idle_event is NULL");
                return FALSE;
        }
 
@@ -580,7 +587,7 @@ static gboolean _recorder_idle_event_callback(gpointer data)
 
        cb_info = rec_idle_event->cb_info;
        if (cb_info == NULL) {
-               LOGW("recorder cb_info is NULL. event %p %d", rec_idle_event, rec_idle_event->event);
+               REC_LOG_WARNING("recorder cb_info is NULL. event[%p][%d]", rec_idle_event, rec_idle_event->event);
                g_mutex_unlock(&g_rec_idle_event_lock);
                goto IDLE_EVENT_CALLBACK_DONE;
        }
@@ -609,14 +616,14 @@ static void _recorder_deactivate_idle_event_all(recorder_cb_info_s *cb_info)
        GList *list = NULL;
 
        if (cb_info == NULL) {
-               LOGE("cb_info is NULL");
+               REC_LOG_ERROR("cb_info is NULL");
                return;
        }
 
        g_mutex_lock(&g_rec_idle_event_lock);
 
        if (cb_info->idle_event_list == NULL) {
-               LOGD("No event");
+               REC_LOG_INFO("No event");
        } else {
                list = cb_info->idle_event_list;
 
@@ -625,12 +632,12 @@ static void _recorder_deactivate_idle_event_all(recorder_cb_info_s *cb_info)
                        list = g_list_next(list);
 
                        if (!rec_idle_event) {
-                               LOGW("The event is NULL");
+                               REC_LOG_WARNING("The event is NULL");
                                continue;
                        }
 
                        if (g_idle_remove_by_data(rec_idle_event)) {
-                               LOGW("remove idle event %p done", rec_idle_event);
+                               REC_LOG_WARNING("remove idle event[%p] done", rec_idle_event);
 
                                cb_info->idle_event_list = g_list_remove(cb_info->idle_event_list, (gpointer)rec_idle_event);
 
@@ -640,7 +647,7 @@ static void _recorder_deactivate_idle_event_all(recorder_cb_info_s *cb_info)
                                continue;
                        }
 
-                       LOGW("set NULL cb_info for event %p %d, it will be freed on idle callback",
+                       REC_LOG_WARNING("set NULL cb_info for event[%p][%d], it will be freed on idle callback",
                                rec_idle_event, rec_idle_event->event);
 
                        rec_idle_event->cb_info = NULL;
@@ -664,13 +671,13 @@ static void __recorder_add_msg_to_queue(recorder_cb_info_s *cb_info, int api, in
        recorder_msg_handler_info_s *msg_handler_info = NULL;
 
        if (!cb_info || !msg) {
-               LOGE("NULL pointer %p %p", cb_info, msg);
+               REC_LOG_ERROR("NULL pointer[%p][%p]", cb_info, msg);
                return;
        }
 
        rec_msg = g_new0(recorder_message_s, 1);
        if (!rec_msg) {
-               LOGE("failed to alloc rec_msg for [%s]", msg);
+               REC_LOG_ERROR("failed to alloc rec_msg for[%s]", msg);
                return;
        }
 
@@ -683,7 +690,8 @@ static void __recorder_add_msg_to_queue(recorder_cb_info_s *cb_info, int api, in
 
        strncpy(rec_msg->recv_msg, msg, sizeof(rec_msg->recv_msg) - 1);
 
-       /*LOGD("add recorder message to queue : api %d, event %d, event_class %d", api, event, event_class);*/
+       REC_LOG_DEBUG("api[%d], event[%d], event_class[%d]",
+               api, event, event_class);
 
        if (event == MUSE_RECORDER_EVENT_TYPE_AUDIO_STREAM)
                msg_handler_info = &cb_info->audio_stream_cb_info;
@@ -706,7 +714,7 @@ static void __recorder_add_msg_to_queue(recorder_cb_info_s *cb_info, int api, in
 static void __recorder_get_api_operation(int api, recorder_cb_info_s *cb_info, char *msg)
 {
        if (!cb_info || !msg) {
-               LOGE("NULL pointer %p %p", cb_info, msg);
+               REC_LOG_ERROR("NULL pointer[%p][%p]", cb_info, msg);
                return;
        }
 
@@ -847,38 +855,38 @@ static void __recorder_process_msg(recorder_cb_info_s *cb_info, char *msg, int *
        int event_class = -1;
 
        if (!cb_info || !msg) {
-               LOGE("invalid ptr %p %p", cb_info, msg);
+               REC_LOG_ERROR("invalid ptr[%p][%p]", cb_info, msg);
                return;
        }
 
-       /*LOGD("msg [%s]", msg);*/
+       REC_LOG_DEBUG("msg[%s]", msg);
 
        if (!muse_recorder_msg_get(api, msg)) {
-               LOGE("failed to get recorder api");
+               REC_LOG_ERROR("failed to get recorder api");
                return;
        }
 
        if (api == MUSE_RECORDER_CB_EVENT) {
                if (!muse_recorder_msg_get(event, msg) ||
                        !muse_recorder_msg_get(event_class, msg)) {
-                       LOGE("failed to get event or event_class [%s]", msg);
+                       REC_LOG_ERROR("failed to get event or event_class[%s]", msg);
                        return;
                }
        } else {
                if (!muse_recorder_msg_get(api_class, msg)) {
-                       LOGE("failed to get api_class [%s]", msg);
+                       REC_LOG_ERROR("failed to get api_class[%s]", msg);
                        return;
                }
        }
 
        if (api_class == MUSE_RECORDER_API_CLASS_IMMEDIATE) {
                if (api >= MUSE_RECORDER_API_MAX) {
-                       LOGE("invalid api %d", api);
+                       REC_LOG_ERROR("invalid api[%d]", api);
                        return;
                }
 
                if (!muse_recorder_msg_get(ret, msg)) {
-                       LOGE("failed to get recorder ret");
+                       REC_LOG_ERROR("failed to get recorder ret");
                        return;
                }
 
@@ -886,19 +894,19 @@ static void __recorder_process_msg(recorder_cb_info_s *cb_info, char *msg, int *
 
                if (api == MUSE_RECORDER_API_GET_DEVICE_STATE) {
                        g_atomic_int_set(&cb_info->msg_recv_running, 0);
-                       LOGD("get device state done. close client cb handler");
+                       REC_LOG_INFO("get device state done. close client cb handler");
                } else {
                        switch (api) {
                        case MUSE_RECORDER_API_CREATE:
                                if (ret != RECORDER_ERROR_NONE) {
                                        g_atomic_int_set(&cb_info->msg_recv_running, 0);
-                                       LOGE("create error 0x%x. closing..", ret);
+                                       REC_LOG_ERROR("create error [0x%x]. closing..", ret);
                                }
                                break;
                        case MUSE_RECORDER_API_DESTROY:
                                if (ret == RECORDER_ERROR_NONE) {
                                        g_atomic_int_set(&cb_info->msg_recv_running, 0);
-                                       LOGD("destroy done. closing..");
+                                       REC_LOG_INFO("destroy done. closing..");
                                }
                                break;
                        default:
@@ -913,14 +921,14 @@ static void __recorder_process_msg(recorder_cb_info_s *cb_info, char *msg, int *
 
                        g_cond_signal(&cb_info->api_cond[api]);
                } else {
-                       LOGE("no waiting for api [%d]", api);
+                       REC_LOG_ERROR("no waiting for api[%d]", api);
                }
 
                g_mutex_unlock(&cb_info->api_mutex[api]);
        } else if (api_class == MUSE_RECORDER_API_CLASS_THREAD_SUB || api == MUSE_RECORDER_CB_EVENT) {
                __recorder_add_msg_to_queue(cb_info, api, event, event_class, msg, tfd);
        } else {
-               LOGW("unknown recorder api %d and api_class %d", api, api_class);
+               REC_LOG_WARNING("unknown recorder api[%d] and api_class[%d]", api, api_class);
        }
 
        return;
@@ -937,25 +945,25 @@ static void *_recorder_msg_handler_func(gpointer data)
        recorder_cb_info_s *cb_info = NULL;
 
        if (!handler_info || !handler_info->cb_info) {
-               LOGE("NULL handler %p", handler_info);
+               REC_LOG_ERROR("NULL handler[%p]", handler_info);
                return NULL;
        }
 
        cb_info = (recorder_cb_info_s *)handler_info->cb_info;
        type = handler_info->type;
 
-       LOGD("t:%d start", type);
+       REC_LOG_INFO("t[%d] start", type);
 
        g_mutex_lock(&handler_info->mutex);
 
        while (g_atomic_int_get(&handler_info->running)) {
                if (g_queue_is_empty(handler_info->queue)) {
-                       /*LOGD("signal wait...");*/
+                       REC_LOG_VERBOSE("signal wait...");
                        g_cond_wait(&handler_info->cond, &handler_info->mutex);
-                       /*LOGD("signal received");*/
+                       REC_LOG_VERBOSE("signal received");
 
                        if (g_atomic_int_get(&handler_info->running) == 0) {
-                               LOGD("stop event thread");
+                               REC_LOG_INFO("stop event thread");
                                break;
                        }
                }
@@ -963,7 +971,7 @@ static void *_recorder_msg_handler_func(gpointer data)
                rec_msg = (recorder_message_s *)g_queue_pop_head(handler_info->queue);
                g_mutex_unlock(&handler_info->mutex);
                if (rec_msg == NULL) {
-                       LOGE("NULL message");
+                       REC_LOG_ERROR("NULL message");
                        g_mutex_lock(&handler_info->mutex);
                        continue;
                }
@@ -980,14 +988,14 @@ static void *_recorder_msg_handler_func(gpointer data)
                                        cb_info->api_ret[api] = ret;
                                        cb_info->api_activating[api] = TRUE;
 
-                                       /*LOGD("recorder api %d - return 0x%x", api, ret);*/
+                                       REC_LOG_DEBUG("recorder api[%d] - return[0x%x]", api, ret);
 
                                        g_cond_signal(&cb_info->api_cond[api]);
                                } else {
-                                       LOGE("no waiting for api [%d]", api);
+                                       REC_LOG_ERROR("no waiting for api [%d]", api);
                                }
                        } else {
-                               LOGE("t:%d failed to get ret for api %d, msg %s", type, api, rec_msg->recv_msg);
+                               REC_LOG_ERROR("t[%d] failed to get ret for api[%d], msg[%s]", type, api, rec_msg->recv_msg);
                        }
 
                        g_mutex_unlock(&cb_info->api_mutex[api]);
@@ -999,7 +1007,7 @@ static void *_recorder_msg_handler_func(gpointer data)
                        case MUSE_RECORDER_EVENT_CLASS_THREAD_MAIN:
                                rec_idle_event = g_new0(recorder_idle_event_s, 1);
                                if (rec_idle_event == NULL) {
-                                       LOGE("event alloc failed");
+                                       REC_LOG_ERROR("event alloc failed");
                                        break;
                                }
 
@@ -1008,7 +1016,7 @@ static void *_recorder_msg_handler_func(gpointer data)
 
                                strncpy(rec_idle_event->recv_msg, rec_msg->recv_msg, sizeof(rec_idle_event->recv_msg));
 
-                               /*LOGD("add recorder event[%d, %p] to IDLE", rec_msg->event, rec_idle_event);*/
+                               REC_LOG_DEBUG("add recorder event[%d][%p] to IDLE", rec_msg->event, rec_idle_event);
 
                                g_mutex_lock(&g_rec_idle_event_lock);
                                cb_info->idle_event_list = g_list_append(cb_info->idle_event_list, (gpointer)rec_idle_event);
@@ -1020,11 +1028,11 @@ static void *_recorder_msg_handler_func(gpointer data)
                                        NULL);
                                break;
                        default:
-                               LOGE("unknown event class %d", rec_msg->event_class);
+                               REC_LOG_ERROR("unknown event class[%d]", rec_msg->event_class);
                                break;
                        }
                } else {
-                       LOGE("unknown api[%d] message", api);
+                       REC_LOG_ERROR("unknown api[%d] message", api);
                }
 
                g_free(rec_msg);
@@ -1037,17 +1045,17 @@ static void *_recorder_msg_handler_func(gpointer data)
        while (!g_queue_is_empty(handler_info->queue)) {
                rec_msg = (recorder_message_s *)g_queue_pop_head(handler_info->queue);
                if (rec_msg) {
-                       LOGD("remove message %p", rec_msg);
+                       REC_LOG_INFO("remove message[%p]", rec_msg);
                        free(rec_msg);
                        rec_msg = NULL;
                } else {
-                       LOGW("NULL message");
+                       REC_LOG_WARNING("NULL message");
                }
        }
 
        g_mutex_unlock(&handler_info->mutex);
 
-       LOGD("return");
+       REC_LOG_INFO("return");
 
        return NULL;
 }
@@ -1062,11 +1070,11 @@ static void *_recorder_msg_recv_func(gpointer data)
        recorder_cb_info_s *cb_info = (recorder_cb_info_s *)data;
 
        if (cb_info == NULL) {
-               LOGE("cb_info NULL");
+               REC_LOG_ERROR("cb_info NULL");
                return NULL;
        }
 
-       LOGD("start");
+       REC_LOG_INFO("start");
 
        recv_msg = cb_info->recv_msg;
 
@@ -1078,19 +1086,19 @@ static void *_recorder_msg_recv_func(gpointer data)
                if (recv_length <= 0) {
 //LCOV_EXCL_START
                        cb_info->is_server_connected = FALSE;
-                       LOGE("receive msg failed - server disconnected");
+                       REC_LOG_ERROR("receive msg failed - server disconnected");
                        break;
 //LCOV_EXCL_STOP
                }
 
                recv_msg[recv_length] = '\0';
 
-               /*LOGD("recv msg : %s, length : %d", recv_msg, recv_length);*/
+               REC_LOG_DEBUG("recv msg[%s], length[%d]", recv_msg, recv_length);
 
                __recorder_process_msg(cb_info, recv_msg, tfd);
        }
 
-       LOGD("client cb exit - server connected %d", cb_info->is_server_connected);
+       REC_LOG_INFO("client cb exit - server connected[%d]", cb_info->is_server_connected);
 
        if (!cb_info->is_server_connected) {
 //LCOV_EXCL_START
@@ -1101,11 +1109,11 @@ static void *_recorder_msg_recv_func(gpointer data)
                        NULL);
 
                if (!error_msg) {
-                       LOGE("error_msg failed");
+                       REC_LOG_ERROR("error_msg failed");
                        goto CB_HANDLER_EXIT;
                }
 
-               LOGE("add error msg for service disconnection done");
+               REC_LOG_ERROR("add error msg for service disconnection done");
 
                __recorder_add_msg_to_queue(cb_info,
                        MUSE_RECORDER_CB_EVENT,
@@ -1117,7 +1125,7 @@ static void *_recorder_msg_recv_func(gpointer data)
                muse_core_msg_free(error_msg);
                error_msg = NULL;
 
-               LOGE("add error msg for service disconnection done");
+               REC_LOG_ERROR("add error msg for service disconnection done");
 //LCOV_EXCL_STOP
        }
 
@@ -1130,17 +1138,17 @@ static bool __create_msg_handler_thread(recorder_msg_handler_info_s *handler_inf
        int type, const char *thread_name, recorder_cb_info_s *cb_info)
 {
        if (!handler_info || !thread_name || !cb_info) {
-               LOGE("t:%d NULL %p %p %p",
+               REC_LOG_ERROR("t[%d] NULL[%p][%p][%p]",
                        type, handler_info, thread_name, cb_info);
                return false;
        }
 
-       LOGD("t:%d", type);
+       REC_LOG_INFO("t[%d]", type);
 
        handler_info->type = type;
        handler_info->queue = g_queue_new();
        if (handler_info->queue == NULL) {
-               LOGE("t:%d queue failed", type);
+               REC_LOG_ERROR("t[%d] queue failed", type);
                return false;
        }
 
@@ -1154,7 +1162,7 @@ static bool __create_msg_handler_thread(recorder_msg_handler_info_s *handler_inf
                _recorder_msg_handler_func, (gpointer)handler_info, NULL);
        if (handler_info->thread == NULL) {
 //LCOV_EXCL_START
-               LOGE("t:%d thread failed", type);
+               REC_LOG_ERROR("t[%d] thread failed", type);
 
                g_mutex_clear(&handler_info->mutex);
                g_cond_clear(&handler_info->cond);
@@ -1165,7 +1173,7 @@ static bool __create_msg_handler_thread(recorder_msg_handler_info_s *handler_inf
 //LCOV_EXCL_STOP
        }
 
-       LOGD("t:%d done", type);
+       REC_LOG_INFO("t[%d] done", type);
 
        return true;
 }
@@ -1176,18 +1184,18 @@ static void __destroy_msg_handler_thread(recorder_msg_handler_info_s *handler_in
        int type = 0;
 
        if (!handler_info) {
-               LOGE("NULL handler");
+               REC_LOG_ERROR("NULL handler");
                return;
        }
 
        if (!handler_info->thread) {
-               LOGW("thread is not created");
+               REC_LOG_WARNING("thread is not created");
                return;
        }
 
        type = handler_info->type;
 
-       LOGD("t:%d thread %p", type, handler_info->thread);
+       REC_LOG_INFO("t[%d] thread[%p]", type, handler_info->thread);
 
        g_mutex_lock(&handler_info->mutex);
        g_atomic_int_set(&handler_info->running, 0);
@@ -1202,7 +1210,7 @@ static void __destroy_msg_handler_thread(recorder_msg_handler_info_s *handler_in
        g_queue_free(handler_info->queue);
        handler_info->queue = NULL;
 
-       LOGD("t:%d done", type);
+       REC_LOG_INFO("t[%d] done", type);
 
        return;
 }
@@ -1217,7 +1225,7 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd)
 
        cb_info = g_new0(recorder_cb_info_s, 1);
        if (cb_info == NULL) {
-               LOGE("cb_info failed");
+               REC_LOG_ERROR("cb_info failed");
                goto ErrorExit;
        }
 
@@ -1234,21 +1242,21 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd)
        /* message handler thread */
        if (!__create_msg_handler_thread(&cb_info->msg_handler_info,
                _RECORDER_MESSAGE_HANDLER_TYPE_GENERAL, "recorder_msg_handler", cb_info)) {
-               LOGE("msg_handler_info failed");
+               REC_LOG_ERROR("msg_handler_info failed");
                goto ErrorExit;
        }
 
        /* message handler thread for audio stream callback */
        if (!__create_msg_handler_thread(&cb_info->audio_stream_cb_info,
                _RECORDER_MESSAGE_HANDLER_TYPE_AUDIO_STREAM_CB, "recorder_msg_handler:audio_stream_cb", cb_info)) {
-               LOGE("audio_stream_cb_info failed");
+               REC_LOG_ERROR("audio_stream_cb_info failed");
                goto ErrorExit;
        }
 
        /* message handler thread for muxed stream callback */
        if (!__create_msg_handler_thread(&cb_info->muxed_stream_cb_info,
                _RECORDER_MESSAGE_HANDLER_TYPE_MUXED_STREAM_CB, "recorder_msg_handler:muxed_stream_cb", cb_info)) {
-               LOGE("muxed_stream_cb_info failed");
+               REC_LOG_ERROR("muxed_stream_cb_info failed");
                goto ErrorExit;
        }
 
@@ -1259,7 +1267,7 @@ static recorder_cb_info_s *_recorder_client_callback_new(gint sockfd)
        cb_info->msg_recv_thread = g_thread_try_new("recorder_msg_recv",
                _recorder_msg_recv_func, (gpointer)cb_info, NULL);
        if (cb_info->msg_recv_thread == NULL) {
-               LOGE("message receive thread creation failed");
+               REC_LOG_ERROR("message receive thread creation failed");
                goto ErrorExit;
        }
 
@@ -1294,31 +1302,29 @@ static int _recorder_client_wait_for_cb_return(muse_recorder_api_e api, recorder
        int ret = RECORDER_ERROR_NONE;
        gint64 end_time;
 
-       /*LOGD("Enter api : %d", api);*/
-
        if (!cb_info->is_server_connected) {
-               LOGE("server is disconnected");
+               REC_LOG_ERROR("server is disconnected");
                return RECORDER_ERROR_SERVICE_DISCONNECTED;
        }
 
        g_mutex_lock(&(cb_info->api_mutex[api]));
 
-       LOGD("api [%d], timeout [%d sec]", api, time_out);
+       REC_LOG_INFO("api[%d], timeout[%d]sec", api, time_out);
 
        end_time = g_get_monotonic_time() + time_out * G_TIME_SPAN_SECOND;
 
        while (!cb_info->api_activating[api]) {
                if (time_out == RECORDER_CB_NO_TIMEOUT) {
                        g_cond_wait(&(cb_info->api_cond[api]), &(cb_info->api_mutex[api]));
-                       LOGW("api %d returned 0x%x", api, cb_info->api_ret[api]);
+                       REC_LOG_WARNING("api[%d] returned[0x%x]", api, cb_info->api_ret[api]);
                } else if (!g_cond_wait_until(&(cb_info->api_cond[api]), &(cb_info->api_mutex[api]), end_time)) {
-                       LOGE("api %d was TIMED OUT!", api);
+                       REC_LOG_ERROR("api[%d] was TIMED OUT!", api);
                        ret = RECORDER_ERROR_INVALID_OPERATION;
                        goto _CB_RETURN_END;
                }
 
                if (!cb_info->api_activating[api])
-                       LOGW("invalid signal received, wait again...");
+                       REC_LOG_WARNING("invalid signal received, wait again...");
        }
 
        ret = cb_info->api_ret[api];
@@ -1328,7 +1334,7 @@ _CB_RETURN_END:
        g_mutex_unlock(&(cb_info->api_mutex[api]));
 
        if (ret != RECORDER_ERROR_NONE)
-               LOGE("ERROR : api %d - ret 0x%x", api, ret);
+               REC_LOG_ERROR("ERROR : api[%d] - ret[0x%x]", api, ret);
 
        return ret;
 }
@@ -1340,17 +1346,17 @@ static int _recorder_msg_send(int api, recorder_cb_info_s *cb_info, int *ret, in
        char *msg = NULL;
 
        if (!cb_info || !ret) {
-               LOGE("invalid pointer for api %d - %p %p", api, cb_info, ret);
+               REC_LOG_ERROR("invalid pointer for api[%d] -[%p][%p]", api, cb_info, ret);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        msg = muse_core_msg_new(api, NULL);
        if (!msg) {
-               LOGE("msg creation failed: api %d", api);
+               REC_LOG_ERROR("msg creation failed: api[%d]", api);
                return RECORDER_ERROR_OUT_OF_MEMORY;
        }
 
-       /*LOGD("send msg %s", msg);*/
+       REC_LOG_VERBOSE("send msg[%s]", msg);
 
        if (cb_info->is_server_connected) {
                __recorder_update_api_waiting(cb_info, api, 1);
@@ -1358,7 +1364,7 @@ static int _recorder_msg_send(int api, recorder_cb_info_s *cb_info, int *ret, in
        }
 
        if (send_ret < 0) {
-               LOGE("message send failed");
+               REC_LOG_ERROR("message send failed");
                *ret = RECORDER_ERROR_INVALID_OPERATION;
        } else {
                *ret = _recorder_client_wait_for_cb_return(api, cb_info, timeout);
@@ -1378,11 +1384,11 @@ static int _recorder_msg_send_param1(int api, recorder_cb_info_s *cb_info, int *
        char *msg = NULL;
 
        if (!cb_info || !ret || !param) {
-               LOGE("invalid pointer for api %d - %p %p %p", api, cb_info, ret, param);
+               REC_LOG_ERROR("invalid pointer for api[%d] -[%p][%p][%p]", api, cb_info, ret, param);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       /*LOGD("type %d, name %s", param->type, param->name);*/
+       REC_LOG_VERBOSE("type[%d], name[%s]", param->type, param->name);
 
        switch (param->type) {
        case MUSE_TYPE_INT:
@@ -1395,17 +1401,17 @@ static int _recorder_msg_send_param1(int api, recorder_cb_info_s *cb_info, int *
                msg = muse_core_msg_new(api, param->type, param->name, param->value.value_STRING, NULL);
                break;
        default:
-               LOGE("unknown type %d", param->type);
+               REC_LOG_ERROR("unknown type[%d]", param->type);
                break;
        }
 
        if (!msg) {
-               LOGE("msg creation failed: api %d, type %d, param name %s",
+               REC_LOG_ERROR("msg creation failed: api[%d], type[%d], param name[%s]",
                        api, param->type, param->name);
                return RECORDER_ERROR_OUT_OF_MEMORY;
        }
 
-       /*LOGD("send msg %s", msg);*/
+       REC_LOG_VERBOSE("send msg[%s]", msg);
 
        if (cb_info->is_server_connected) {
                __recorder_update_api_waiting(cb_info, api, 1);
@@ -1414,7 +1420,7 @@ static int _recorder_msg_send_param1(int api, recorder_cb_info_s *cb_info, int *
        }
 
        if (send_ret < 0) {
-               LOGE("message send failed");
+               REC_LOG_ERROR("message send failed");
                *ret = RECORDER_ERROR_INVALID_OPERATION;
        } else {
                *ret = _recorder_client_wait_for_cb_return(api, cb_info, RECORDER_CB_TIMEOUT);
@@ -1437,12 +1443,12 @@ static void _recorder_client_callback_destroy(recorder_cb_info_s *cb_info)
        /* remove idle event */
        _recorder_deactivate_idle_event_all(cb_info);
 
-       LOGD("MSG receive thread[%p] destroy", cb_info->msg_recv_thread);
+       REC_LOG_INFO("MSG receive thread[%p] destroy", cb_info->msg_recv_thread);
 
        g_thread_join(cb_info->msg_recv_thread);
        cb_info->msg_recv_thread = NULL;
 
-       LOGD("msg_recv thread removed");
+       REC_LOG_INFO("msg_recv thread removed");
 
        __destroy_msg_handler_thread(&cb_info->msg_handler_info);
        __destroy_msg_handler_thread(&cb_info->audio_stream_cb_info);
@@ -1482,11 +1488,11 @@ static bool _recorder_storage_device_supported_cb(int storage_id, storage_type_e
        char **root_directory = (char **)user_data;
 
        if (root_directory == NULL) {
-               LOGE("user data is NULL");
+               REC_LOG_ERROR("user data is NULL");
                return false;
        }
 
-       LOGD("storage id %d, type %d, state %d, path %s",
+       REC_LOG_INFO("storage id[%d], type[%d], state[%d], path[%s]",
                storage_id, type, state, path ? path : "NULL");
 
        if (type == STORAGE_TYPE_INTERNAL && path) {
@@ -1497,10 +1503,10 @@ static bool _recorder_storage_device_supported_cb(int storage_id, storage_type_e
 
                *root_directory = strdup(path);
                if (*root_directory) {
-                       LOGD("get root directory %s", *root_directory);
+                       REC_LOG_INFO("get root directory[%s]", *root_directory);
                        return false;
                } else {
-                       LOGE("strdup %s failed", path);
+                       REC_LOG_ERROR("strdup[%s] failed", path);
                }
        }
 
@@ -1512,13 +1518,13 @@ static int _recorder_client_get_root_directory(char **root_directory)
        int ret = STORAGE_ERROR_NONE;
 
        if (root_directory == NULL) {
-               LOGE("user data is NULL");
+               REC_LOG_ERROR("user data is NULL");
                return false;
        }
 
        ret = storage_foreach_device_supported((storage_device_supported_cb)_recorder_storage_device_supported_cb, root_directory);
        if (ret != STORAGE_ERROR_NONE) {
-               LOGE("storage_foreach_device_supported failed 0x%x", ret);
+               REC_LOG_ERROR("storage_foreach_device_supported failed[0x%x]", ret);
                return false;
        }
 
@@ -1540,21 +1546,21 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
        recorder_cli_s *pc = NULL;
        recorder_msg_param param;
 
-       LOGD("Enter - type %d", type);
+       REC_LOG_INFO("Enter - type[%d]", type);
 
        if (recorder == NULL) {
-               LOGE("NULL pointer for recorder handle");
+               REC_LOG_ERROR("NULL pointer for recorder handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (type == MUSE_RECORDER_TYPE_VIDEO && camera == NULL) {
-               LOGE("NULL pointer for camera handle on video recorder mode");
+               REC_LOG_ERROR("NULL pointer for camera handle on video recorder mode");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        bufmgr = tbm_bufmgr_init(-1);
        if (bufmgr == NULL) {
-               LOGE("get tbm bufmgr failed");
+               REC_LOG_ERROR("get tbm bufmgr failed");
                return RECORDER_ERROR_INVALID_OPERATION;
        }
 
@@ -1567,14 +1573,14 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
        sock_fd = muse_client_new();
        if (sock_fd < 0) {
 //LCOV_EXCL_START
-               LOGE("muse_client_new failed - returned fd %d", sock_fd);
+               REC_LOG_ERROR("muse_client_new failed - returned fd[%d]", sock_fd);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _ERR_RECORDER_EXIT;
 //LCOV_EXCL_STOP
        }
 
        if (muse_client_get_module_index(MODULE_NAME, &module_index) != MM_ERROR_NONE) {
-               LOGE("muse client get module index failed");
+               REC_LOG_ERROR("muse client get module index failed");
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _ERR_RECORDER_EXIT;
        }
@@ -1598,13 +1604,13 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
 
        if (!send_msg) {
 //LCOV_EXCL_START
-               LOGE("NULL msg");
+               REC_LOG_ERROR("NULL msg");
                ret = RECORDER_ERROR_OUT_OF_MEMORY;
                goto _ERR_RECORDER_EXIT;
 //LCOV_EXCL_STOP
        }
 
-       LOGD("sock_fd : %d, msg : %s", sock_fd, send_msg);
+       REC_LOG_INFO("sock_fd[%d], msg[%s]", sock_fd, send_msg);
 
        send_ret = muse_core_msg_send(sock_fd, send_msg);
 
@@ -1613,7 +1619,7 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
 
        if (send_ret < 0) {
 //LCOV_EXCL_START
-               LOGE("send msg failed %d", errno);
+               REC_LOG_ERROR("send msg failed[%d]", errno);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _ERR_RECORDER_EXIT;
 //LCOV_EXCL_STOP
@@ -1632,14 +1638,14 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
        pc->cb_info->api_waiting[MUSE_RECORDER_API_CREATE] = 0;
 
        if (ret != RECORDER_ERROR_NONE) {
-               LOGE("API_CREATE failed 0x%x", ret);
+               REC_LOG_ERROR("API_CREATE failed[0x%x]", ret);
                goto _ERR_RECORDER_EXIT;
        }
 
        muse_recorder_msg_get_pointer(handle, pc->cb_info->recv_msg);
        if (handle == 0) {
 //LCOV_EXCL_START
-               LOGE("Receiving Handle Failed!!");
+               REC_LOG_ERROR("Receiving Handle Failed!!");
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _ERR_RECORDER_AFTER_CREATE;
 //LCOV_EXCL_STOP
@@ -1647,20 +1653,20 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
 
        if (!_recorder_client_get_root_directory(&root_directory) || root_directory == NULL) {
 //LCOV_EXCL_START
-               LOGE("failed to get root directory of internal storage");
+               REC_LOG_ERROR("failed to get root directory of internal storage");
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _ERR_RECORDER_AFTER_CREATE;
 //LCOV_EXCL_STOP
        }
 
-       LOGD("root directory [%s]", root_directory);
+       REC_LOG_INFO("root directory[%s]", root_directory);
 
        RECORDER_MSG_PARAM_SET(param, STRING, root_directory);
 
        _recorder_msg_send_param1(MUSE_RECORDER_API_ATTR_SET_ROOT_DIRECTORY, pc->cb_info, &ret, &param);
 
        if (ret != RECORDER_ERROR_NONE) {
-               LOGE("failed to set root directory %s", root_directory);
+               REC_LOG_ERROR("failed to set root directory[%s]", root_directory);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _ERR_RECORDER_AFTER_CREATE;
        }
@@ -1671,18 +1677,18 @@ static int _recorder_create_common(recorder_h *recorder, muse_recorder_type_e ty
        pc->remote_handle = handle;
        pc->cb_info->bufmgr = bufmgr;
 
-       LOGD("recorder[type %d] %p create success : remote handle 0x%td",
+       REC_LOG_INFO("recorder type[%d][%p] create success : remote handle[%td]",
                type, pc, pc->remote_handle);
 
        *recorder = (recorder_h)pc;
 
-       LOGD("done");
+       REC_LOG_INFO("done");
 
        return RECORDER_ERROR_NONE;
 //LCOV_EXCL_START
 _ERR_RECORDER_AFTER_CREATE:
        _recorder_msg_send(MUSE_RECORDER_API_DESTROY, pc->cb_info, &destroy_ret, RECORDER_CB_TIMEOUT);
-       LOGE("destroy return 0x%x", destroy_ret);
+       REC_LOG_ERROR("destroy return[0x%x]", destroy_ret);
 
 _ERR_RECORDER_EXIT:
        tbm_bufmgr_deinit(bufmgr);
@@ -1731,23 +1737,23 @@ int recorder_get_state(recorder_h recorder, recorder_state_e *state)
        muse_recorder_api_e api = MUSE_RECORDER_API_GET_STATE;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (state == NULL) {
-               LOGE("NULL pointer state");
+               REC_LOG_ERROR("NULL pointer state");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, remote_handle : %td", pc->remote_handle);
+       REC_LOG_INFO("Enter, remote_handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *state = (recorder_state_e)pc->cb_info->get_int_value[_RECORDER_GET_INT_STATE];
 
-       LOGD("ret : 0x%x, state : %d", ret, *state);
+       REC_LOG_INFO("ret[0x%x], state[%d]", ret, *state);
 
        return ret;
 }
@@ -1760,16 +1766,16 @@ int recorder_destroy(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        if (pc->cb_info->is_server_connected)
                _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
        else
-               LOGW("server disconnected. release resource without send message.");
+               REC_LOG_WARNING("server disconnected. release resource without send message.");
 
        if (ret == RECORDER_ERROR_NONE) {
                _recorder_client_callback_destroy(pc->cb_info);
@@ -1777,7 +1783,7 @@ int recorder_destroy(recorder_h recorder)
                pc = NULL;
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -1790,15 +1796,15 @@ int recorder_prepare(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        if (ret == RECORDER_ERROR_NONE && pc->camera)
                camera_start_evas_rendering(pc->camera);
@@ -1815,24 +1821,24 @@ int recorder_unprepare(recorder_h recorder)
        camera_state_e camera_state = CAMERA_STATE_NONE;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        if (pc->camera) {
 //LCOV_EXCL_START
                ret = camera_get_state(pc->camera, &camera_state);
                if (ret != CAMERA_ERROR_NONE) {
-                       LOGE("failed to get camera state 0x%x", ret);
+                       REC_LOG_ERROR("failed to get camera state[0x%x]", ret);
                        return RECORDER_ERROR_INVALID_OPERATION;
                }
 
                if (camera_state == CAMERA_STATE_PREVIEW) {
                        ret = camera_stop_evas_rendering(pc->camera, false);
                        if (ret != CAMERA_ERROR_NONE) {
-                               LOGE("camera_stop_evas_rendering failed 0x%x", ret);
+                               REC_LOG_ERROR("camera_stop_evas_rendering failed[0x%x]", ret);
                                return RECORDER_ERROR_INVALID_OPERATION;
                        }
                }
@@ -1841,7 +1847,7 @@ int recorder_unprepare(recorder_h recorder)
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -1855,24 +1861,24 @@ int recorder_start(recorder_h recorder)
        recorder_state_e current_state = RECORDER_STATE_NONE;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        if (pc->camera) {
 //LCOV_EXCL_START
                ret = recorder_get_state(recorder, &current_state);
                if (ret != RECORDER_ERROR_NONE) {
-                       LOGE("failed to get current state 0x%x", ret);
+                       REC_LOG_ERROR("failed to get current state[0x%x]", ret);
                        return RECORDER_ERROR_INVALID_OPERATION;
                }
 
                if (current_state == RECORDER_STATE_READY) {
                        ret = camera_stop_evas_rendering(pc->camera, true);
                        if (ret != CAMERA_ERROR_NONE) {
-                               LOGE("camera_stop_evas_rendering failed 0x%x", ret);
+                               REC_LOG_ERROR("camera_stop_evas_rendering failed[0x%x]", ret);
                                return RECORDER_ERROR_INVALID_OPERATION;
                        }
                }
@@ -1884,7 +1890,7 @@ int recorder_start(recorder_h recorder)
        if (pc->camera && current_state == RECORDER_STATE_READY)
                camera_start_evas_rendering(pc->camera);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -1897,15 +1903,15 @@ int recorder_pause(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -1919,24 +1925,24 @@ int recorder_commit(recorder_h recorder)
        recorder_state_e current_state = RECORDER_STATE_NONE;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        if (pc->camera) {
 //LCOV_EXCL_START
                ret = recorder_get_state(recorder, &current_state);
                if (ret != RECORDER_ERROR_NONE) {
-                       LOGE("failed to get current state 0x%x", ret);
+                       REC_LOG_ERROR("failed to get current state[0x%x]", ret);
                        return RECORDER_ERROR_INVALID_OPERATION;
                }
 
                if (current_state >= RECORDER_STATE_RECORDING) {
                        ret = camera_stop_evas_rendering(pc->camera, true);
                        if (ret != CAMERA_ERROR_NONE) {
-                               LOGE("camera_stop_evas_rendering failed 0x%x", ret);
+                               REC_LOG_ERROR("camera_stop_evas_rendering failed[0x%x]", ret);
                                return RECORDER_ERROR_INVALID_OPERATION;
                        }
                }
@@ -1948,7 +1954,7 @@ int recorder_commit(recorder_h recorder)
        if (pc->camera && current_state >= RECORDER_STATE_RECORDING)
                camera_start_evas_rendering(pc->camera);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -1962,23 +1968,23 @@ int recorder_cancel(recorder_h recorder)
        recorder_state_e current_state = RECORDER_STATE_NONE;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        if (pc->camera) {
                ret = recorder_get_state(recorder, &current_state);
                if (ret != RECORDER_ERROR_NONE) {
-                       LOGE("failed to get current state 0x%x", ret);
+                       REC_LOG_ERROR("failed to get current state[0x%x]", ret);
                        return RECORDER_ERROR_INVALID_OPERATION;
                }
 
                if (current_state >= RECORDER_STATE_RECORDING) {
                        ret = camera_stop_evas_rendering(pc->camera, true);
                        if (ret != CAMERA_ERROR_NONE) {
-                               LOGE("camera_stop_evas_rendering failed 0x%x", ret);
+                               REC_LOG_ERROR("camera_stop_evas_rendering failed[0x%x]", ret);
                                return RECORDER_ERROR_INVALID_OPERATION;
                        }
                }
@@ -1989,7 +1995,7 @@ int recorder_cancel(recorder_h recorder)
        if (pc->camera && current_state >= RECORDER_STATE_RECORDING)
                camera_start_evas_rendering(pc->camera);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2004,11 +2010,11 @@ int recorder_set_video_resolution(recorder_h recorder, int width, int height)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        send_msg = muse_core_msg_new(api,
                MUSE_TYPE_INT, "width", width,
@@ -2022,7 +2028,7 @@ int recorder_set_video_resolution(recorder_h recorder, int width, int height)
                }
 
                if (send_ret < 0) {
-                       LOGE("message send failed");
+                       REC_LOG_ERROR("message send failed");
                        ret = RECORDER_ERROR_INVALID_OPERATION;
                } else {
                        ret = _recorder_client_wait_for_cb_return(api, pc->cb_info, RECORDER_CB_TIMEOUT);
@@ -2032,11 +2038,11 @@ int recorder_set_video_resolution(recorder_h recorder, int width, int height)
 
                muse_core_msg_free(send_msg);
        } else {
-               LOGE("failed to create msg");
+               REC_LOG_ERROR("failed to create msg");
                ret = RECORDER_ERROR_OUT_OF_MEMORY;
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2049,16 +2055,16 @@ int recorder_get_video_resolution(recorder_h recorder, int *width, int *height)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (!width || !height) {
-               LOGE("NULL pointer width = [%p], height = [%p]", width, height);
+               REC_LOG_ERROR("NULL pointer width = [%p], height = [%p]", width, height);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2067,7 +2073,7 @@ int recorder_get_video_resolution(recorder_h recorder, int *width, int *height)
                *height = (0x0000ffff & pc->cb_info->get_int_value[_RECORDER_GET_INT_VIDEO_RESOLUTION]);
        }
 
-       LOGD("ret : 0x%x, %dx%d", ret, *width, *height);
+       REC_LOG_INFO("ret[0x%x],[%d]x%d", ret, *width, *height);
 
        return ret;
 }
@@ -2081,18 +2087,18 @@ int recorder_foreach_supported_video_resolution(recorder_h recorder,
        muse_recorder_api_e api = MUSE_RECORDER_API_FOREACH_SUPPORTED_VIDEO_RESOLUTION;
 
        if (!pc || !pc->cb_info || foreach_cb == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        pc->cb_info->user_cb[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_VIDEO_RESOLUTION] = foreach_cb;
        pc->cb_info->user_data[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_VIDEO_RESOLUTION] = user_data;
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2105,18 +2111,18 @@ int recorder_get_audio_level(recorder_h recorder, double *level)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info || level == NULL) {
-               LOGE("NULL pointer %p %p", pc, level);
+               REC_LOG_ERROR("NULL pointer[%p][%p]", pc, level);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *level = pc->cb_info->get_double_value[_RECORDER_GET_DOUBLE_AUDIO_LEVEL];
 
-       LOGD("ret : 0x%x, level %lf", ret, *level);
+       REC_LOG_INFO("ret[0x%x], level %lf", ret, *level);
 
        return ret;
 }
@@ -2132,21 +2138,21 @@ int recorder_set_filename(recorder_h recorder, const char *filename)
        char set_filename[RECORDER_FILENAME_MAX] = {'\0',};
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (filename == NULL) {
-               LOGE("filename is NULL");
+               REC_LOG_ERROR("filename is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER [%s]", filename);
+       REC_LOG_INFO("ENTER[%s]", filename);
 
        length = strlen(filename);
 
        if (length >= RECORDER_FILENAME_MAX - 1) {
-               LOGE("too long file name [%zu]", length);
+               REC_LOG_ERROR("too long file name [%zu]", length);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
@@ -2156,7 +2162,7 @@ int recorder_set_filename(recorder_h recorder, const char *filename)
                pc->cb_info->is_filename_converted = FALSE;
        } else {
                /* Converted. Use converted path. */
-               LOGD("Converted filename : %s -> %s", filename, set_filename);
+               REC_LOG_INFO("Converted filename[%s] ->[%s]", filename, set_filename);
                pc->cb_info->is_filename_converted = TRUE;
        }
 
@@ -2164,7 +2170,7 @@ int recorder_set_filename(recorder_h recorder, const char *filename)
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2178,16 +2184,16 @@ int recorder_get_filename(recorder_h recorder,  char **filename)
        char compat_filename[RECORDER_FILENAME_MAX] = {0, };
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (filename == NULL) {
-               LOGE("filename is NULL");
+               REC_LOG_ERROR("filename is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2198,7 +2204,7 @@ int recorder_get_filename(recorder_h recorder,  char **filename)
                        *filename = pc->cb_info->get_filename;
                } else {
                        /* Converted. Use converted path. */
-                       LOGD("Converted filename : %s -> %s", pc->cb_info->get_filename, compat_filename);
+                       REC_LOG_INFO("Converted filename[%s] ->[%s]", pc->cb_info->get_filename, compat_filename);
                        *filename = strdup(compat_filename);
                        free(pc->cb_info->get_filename);
                }
@@ -2206,7 +2212,7 @@ int recorder_get_filename(recorder_h recorder,  char **filename)
                pc->cb_info->get_filename = NULL;
        }
 
-       LOGD("ret : 0x%x, filename : [%s]", ret, (*filename) ? *filename : "NULL");
+       REC_LOG_INFO("ret[0x%x], filename[%s]", ret, (*filename) ? *filename : "NULL");
 
        return ret;
 }
@@ -2221,17 +2227,17 @@ int recorder_set_file_format(recorder_h recorder, recorder_file_format_e format)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER, set_format : %d", set_format);
+       REC_LOG_INFO("ENTER, set_format[%d]", set_format);
 
        RECORDER_MSG_PARAM_SET(param, INT, set_format);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
        return ret;
 }
 
@@ -2243,23 +2249,23 @@ int recorder_get_file_format(recorder_h recorder, recorder_file_format_e *format
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (format == NULL) {
-               LOGE("NULL pointer data");
+               REC_LOG_ERROR("NULL pointer data");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *format = (recorder_file_format_e)pc->cb_info->get_int_value[_RECORDER_GET_INT_FILE_FORMAT];
 
-       LOGD("ret : 0x%x, format %d", ret, *format);
+       REC_LOG_INFO("ret[0x%x], format[%d]", ret, *format);
 
        return ret;
 }
@@ -2277,27 +2283,27 @@ int recorder_set_sound_stream_info(recorder_h recorder, sound_stream_info_h stre
        int send_ret = 0;
 
        if (!pc || !pc->cb_info || stream_info == NULL) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        ret = sound_manager_is_available_stream_information(stream_info, NATIVE_API_RECORDER, &is_available);
        if (ret != SOUND_MANAGER_ERROR_NONE) {
-               LOGE("stream info verification failed");
+               REC_LOG_ERROR("stream info verification failed");
                return RECORDER_ERROR_INVALID_OPERATION;
        }
 
        if (is_available == false) {
-               LOGE("stream information is not available");
+               REC_LOG_ERROR("stream information is not available");
                return RECORDER_ERROR_INVALID_OPERATION;
        }
 
        ret = sound_manager_get_type_from_stream_information(stream_info, &stream_type);
        ret |= sound_manager_get_index_from_stream_information(stream_info, &stream_index);
 
-       LOGD("sound manager return [0x%x]", ret);
+       REC_LOG_INFO("sound manager return [0x%x]", ret);
 
        if (ret == SOUND_MANAGER_ERROR_NONE) {
                send_msg = muse_core_msg_new(api,
@@ -2312,7 +2318,7 @@ int recorder_set_sound_stream_info(recorder_h recorder, sound_stream_info_h stre
                        }
 
                        if (send_ret < 0) {
-                               LOGE("message send failed");
+                               REC_LOG_ERROR("message send failed");
                                ret = RECORDER_ERROR_INVALID_OPERATION;
                        } else {
                                ret = _recorder_client_wait_for_cb_return(api, pc->cb_info, RECORDER_CB_TIMEOUT);
@@ -2322,7 +2328,7 @@ int recorder_set_sound_stream_info(recorder_h recorder, sound_stream_info_h stre
 
                        muse_core_msg_free(send_msg);
                } else {
-                       LOGE("failed to create msg");
+                       REC_LOG_ERROR("failed to create msg");
                        ret = RECORDER_ERROR_OUT_OF_MEMORY;
                }
        } else {
@@ -2340,11 +2346,11 @@ int recorder_set_state_changed_cb(recorder_h recorder, recorder_state_changed_cb
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_STATE_CHANGED_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2357,7 +2363,7 @@ int recorder_set_state_changed_cb(recorder_h recorder, recorder_state_changed_cb
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_STATE_CHANGE]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2370,11 +2376,11 @@ int recorder_unset_state_changed_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2387,7 +2393,7 @@ int recorder_unset_state_changed_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_STATE_CHANGE]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2400,11 +2406,11 @@ int recorder_set_interrupted_cb(recorder_h recorder, recorder_interrupted_cb cal
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_INTERRUPTED_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2417,7 +2423,7 @@ int recorder_set_interrupted_cb(recorder_h recorder, recorder_interrupted_cb cal
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_INTERRUPTED]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2430,11 +2436,11 @@ int recorder_unset_interrupted_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2447,7 +2453,7 @@ int recorder_unset_interrupted_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_INTERRUPTED]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2460,11 +2466,11 @@ int recorder_set_interrupt_started_cb(recorder_h recorder, recorder_interrupt_st
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_INTERRUPT_STARTED_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2477,7 +2483,7 @@ int recorder_set_interrupt_started_cb(recorder_h recorder, recorder_interrupt_st
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_INTERRUPT_STARTED]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2490,11 +2496,11 @@ int recorder_unset_interrupt_started_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2507,7 +2513,7 @@ int recorder_unset_interrupt_started_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_INTERRUPT_STARTED]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2520,11 +2526,11 @@ int recorder_set_audio_stream_cb(recorder_h recorder, recorder_audio_stream_cb c
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_AUDIO_STREAM_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2537,7 +2543,7 @@ int recorder_set_audio_stream_cb(recorder_h recorder, recorder_audio_stream_cb c
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_AUDIO_STREAM]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2550,11 +2556,11 @@ int recorder_unset_audio_stream_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2567,7 +2573,7 @@ int recorder_unset_audio_stream_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_AUDIO_STREAM]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2580,11 +2586,11 @@ int recorder_set_muxed_stream_cb(recorder_h recorder, recorder_muxed_stream_cb c
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_MUXED_STREAM_CB;
 
        if (!pc || !pc->cb_info || !callback) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2597,7 +2603,7 @@ int recorder_set_muxed_stream_cb(recorder_h recorder, recorder_muxed_stream_cb c
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_MUXED_STREAM]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2610,11 +2616,11 @@ int recorder_unset_muxed_stream_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2627,7 +2633,7 @@ int recorder_unset_muxed_stream_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_MUXED_STREAM]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2640,11 +2646,11 @@ int recorder_set_video_encode_decision_cb(recorder_h recorder, recorder_video_en
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_VIDEO_ENCODE_DECISION_CB;
 
        if (!pc || !pc->cb_info || !callback) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2657,7 +2663,7 @@ int recorder_set_video_encode_decision_cb(recorder_h recorder, recorder_video_en
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_VIDEO_ENCODE_DECISION]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2670,11 +2676,11 @@ int recorder_unset_video_encode_decision_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2687,7 +2693,7 @@ int recorder_unset_video_encode_decision_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_VIDEO_ENCODE_DECISION]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2700,11 +2706,11 @@ int recorder_set_error_cb(recorder_h recorder, recorder_error_cb callback, void
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_ERROR_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2717,7 +2723,7 @@ int recorder_set_error_cb(recorder_h recorder, recorder_error_cb callback, void
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_ERROR]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2730,11 +2736,11 @@ int recorder_unset_error_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2747,7 +2753,7 @@ int recorder_unset_error_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_ERROR]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2760,11 +2766,11 @@ int recorder_set_recording_status_cb(recorder_h recorder, recorder_recording_sta
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_RECORDING_STATUS_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2777,7 +2783,7 @@ int recorder_set_recording_status_cb(recorder_h recorder, recorder_recording_sta
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_RECORDING_STATUS]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2790,11 +2796,11 @@ int recorder_unset_recording_status_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2807,7 +2813,7 @@ int recorder_unset_recording_status_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_RECORDING_STATUS]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2820,7 +2826,7 @@ int recorder_set_recording_limit_reached_cb(recorder_h recorder, recorder_record
        muse_recorder_api_e api = MUSE_RECORDER_API_SET_RECORDING_LIMIT_REACHED_CB;
 
        if (!pc || !pc->cb_info || callback == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
@@ -2835,7 +2841,7 @@ int recorder_set_recording_limit_reached_cb(recorder_h recorder, recorder_record
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_RECORDING_LIMITED]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2848,11 +2854,11 @@ int recorder_unset_recording_limit_reached_cb(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
@@ -2865,7 +2871,7 @@ int recorder_unset_recording_limit_reached_cb(recorder_h recorder)
                g_mutex_unlock(&pc->cb_info->user_cb_mutex[MUSE_RECORDER_EVENT_TYPE_RECORDING_LIMITED]);
        }
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2878,18 +2884,18 @@ int recorder_foreach_supported_file_format(recorder_h recorder, recorder_support
        muse_recorder_api_e api = MUSE_RECORDER_API_FOREACH_SUPPORTED_FILE_FORMAT;
 
        if (!pc || !pc->cb_info || foreach_cb == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        pc->cb_info->user_cb[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_FILE_FORMAT] = foreach_cb;
        pc->cb_info->user_data[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_FILE_FORMAT] = user_data;
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2903,17 +2909,17 @@ int recorder_attr_set_size_limit(recorder_h recorder, int kbyte)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, kbyte);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2927,17 +2933,17 @@ int recorder_attr_set_time_limit(recorder_h recorder, int second)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, second);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2952,17 +2958,17 @@ int recorder_attr_set_audio_device(recorder_h recorder, recorder_audio_device_e
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        };
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, set_device);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -2977,17 +2983,17 @@ int recorder_set_audio_encoder(recorder_h recorder, recorder_audio_codec_e codec
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, set_codec);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3000,23 +3006,23 @@ int recorder_get_audio_encoder(recorder_h recorder, recorder_audio_codec_e *code
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (codec == NULL) {
-               LOGE("codec is NULL");
+               REC_LOG_ERROR("codec is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *codec = (recorder_audio_codec_e)pc->cb_info->get_int_value[_RECORDER_GET_INT_AUDIO_ENCODER];
 
-       LOGD("ret : 0x%x, codec %d", ret, *codec);
+       REC_LOG_INFO("ret[0x%x], codec[%d]", ret, *codec);
 
        return ret;
 }
@@ -3031,17 +3037,17 @@ int recorder_set_video_encoder(recorder_h recorder, recorder_video_codec_e codec
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, set_codec);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3054,23 +3060,23 @@ int recorder_get_video_encoder(recorder_h recorder, recorder_video_codec_e *code
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (codec == NULL) {
-               LOGE("codec is NULL");
+               REC_LOG_ERROR("codec is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *codec = (recorder_video_codec_e)pc->cb_info->get_int_value[_RECORDER_GET_INT_VIDEO_ENCODER];
 
-       LOGD("ret : 0x%x, codec %d", ret, *codec);
+       REC_LOG_INFO("ret[0x%x], codec[%d]", ret, *codec);
 
        return ret;
 }
@@ -3084,17 +3090,17 @@ int recorder_attr_set_audio_samplerate(recorder_h recorder, int samplerate)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER, samplerate : %d", samplerate);
+       REC_LOG_INFO("ENTER, samplerate[%d]", samplerate);
 
        RECORDER_MSG_PARAM_SET(param, INT, samplerate);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3108,17 +3114,17 @@ int recorder_attr_set_audio_encoder_bitrate(recorder_h recorder, int bitrate)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, bitrate);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3132,17 +3138,17 @@ int recorder_attr_set_video_encoder_bitrate(recorder_h recorder, int bitrate)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, bitrate);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3155,23 +3161,23 @@ int recorder_attr_get_size_limit(recorder_h recorder, int *kbyte)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (kbyte == NULL) {
-               LOGE("NULL pointer kbyte");
+               REC_LOG_ERROR("NULL pointer kbyte");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *kbyte = pc->cb_info->get_int_value[_RECORDER_GET_INT_SIZE_LIMIT];
 
-       LOGD("ret : 0x%x, %d kbyte", ret, *kbyte);
+       REC_LOG_INFO("ret[0x%x],[%d] kbyte", ret, *kbyte);
 
        return ret;
 }
@@ -3184,23 +3190,23 @@ int recorder_attr_get_time_limit(recorder_h recorder, int *second)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (second == NULL) {
-               LOGE("NULL pointer second");
+               REC_LOG_ERROR("NULL pointer second");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *second = pc->cb_info->get_int_value[_RECORDER_GET_INT_TIME_LIMIT];
 
-       LOGD("ret : 0x%x, %d second", ret, *second);
+       REC_LOG_INFO("ret[0x%x],[%d] second", ret, *second);
 
        return ret;
 }
@@ -3213,23 +3219,23 @@ int recorder_attr_get_audio_device(recorder_h recorder, recorder_audio_device_e
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (device == NULL) {
-               LOGE("NULL pointer device");
+               REC_LOG_ERROR("NULL pointer device");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *device = (recorder_audio_device_e)pc->cb_info->get_int_value[_RECORDER_GET_INT_AUDIO_DEVICE];
 
-       LOGD("ret : 0x%x, device %d", ret, *device);
+       REC_LOG_INFO("ret[0x%x], device[%d]", ret, *device);
 
        return ret;
 }
@@ -3242,23 +3248,23 @@ int recorder_attr_get_audio_samplerate(recorder_h recorder, int *samplerate)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (samplerate == NULL) {
-               LOGE("NULL pointer handle");
+               REC_LOG_ERROR("NULL pointer handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *samplerate = pc->cb_info->get_int_value[_RECORDER_GET_INT_AUDIO_SAMPLERATE];
 
-       LOGD("ret : 0x%x, samplerate %d", ret, *samplerate);
+       REC_LOG_INFO("ret[0x%x], samplerate[%d]", ret, *samplerate);
 
        return ret;
 }
@@ -3271,23 +3277,23 @@ int recorder_attr_get_audio_encoder_bitrate(recorder_h recorder, int *bitrate)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (bitrate == NULL) {
-               LOGE("NULL pointer");
+               REC_LOG_ERROR("NULL pointer");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *bitrate = pc->cb_info->get_int_value[_RECORDER_GET_INT_AUDIO_ENCODER_BITRATE];
 
-       LOGD("ret : 0x%x, bitrate %d", ret, *bitrate);
+       REC_LOG_INFO("ret[0x%x], bitrate[%d]", ret, *bitrate);
 
        return ret;
 }
@@ -3300,23 +3306,23 @@ int recorder_attr_get_video_encoder_bitrate(recorder_h recorder, int *bitrate)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (bitrate == NULL) {
-               LOGE("NULL pointer");
+               REC_LOG_ERROR("NULL pointer");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *bitrate = pc->cb_info->get_int_value[_RECORDER_GET_INT_VIDEO_ENCODER_BITRATE];
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3329,18 +3335,18 @@ int recorder_foreach_supported_audio_encoder(recorder_h recorder, recorder_suppo
        muse_recorder_api_e api = MUSE_RECORDER_API_FOREACH_SUPPORTED_AUDIO_ENCODER;
 
        if (!pc || !pc->cb_info || foreach_cb == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        pc->cb_info->user_cb[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_AUDIO_ENCODER] = foreach_cb;
        pc->cb_info->user_data[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_AUDIO_ENCODER] = user_data;
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3353,18 +3359,18 @@ int recorder_foreach_supported_video_encoder(recorder_h recorder, recorder_suppo
        muse_recorder_api_e api = MUSE_RECORDER_API_FOREACH_SUPPORTED_VIDEO_ENCODER;
 
        if (!pc || !pc->cb_info || foreach_cb == NULL) {
-               LOGE("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
+               REC_LOG_ERROR("INVALID_PARAMETER(0x%08x)", RECORDER_ERROR_INVALID_PARAMETER);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter, handle :%td", pc->remote_handle);
+       REC_LOG_INFO("Enter, handle[%td]", pc->remote_handle);
 
        pc->cb_info->user_cb[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_VIDEO_ENCODER] = foreach_cb;
        pc->cb_info->user_data[MUSE_RECORDER_EVENT_TYPE_FOREACH_SUPPORTED_VIDEO_ENCODER] = user_data;
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3379,17 +3385,17 @@ int recorder_attr_set_mute(recorder_h recorder, bool enable)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, set_enable);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3402,18 +3408,18 @@ bool recorder_attr_is_muted(recorder_h recorder)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return false;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_SERVICE_DISCONNECTED)
                ret = false;
 
-       LOGD("ret : %d", ret);
+       REC_LOG_INFO("ret[%d]", ret);
 
        return (bool)ret;
 }
@@ -3427,17 +3433,17 @@ int recorder_attr_set_recording_motion_rate(recorder_h recorder, double rate)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER - %.20lf", rate);
+       REC_LOG_INFO("ENTER - %.20lf", rate);
 
        RECORDER_MSG_PARAM_SET(param, DOUBLE, rate);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3450,22 +3456,22 @@ int recorder_attr_get_recording_motion_rate(recorder_h recorder, double *rate)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (rate == NULL) {
-               LOGE("rate is NULL");
+               REC_LOG_ERROR("rate is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
        if (ret == RECORDER_ERROR_NONE)
                *rate = pc->cb_info->get_double_value[_RECORDER_GET_DOUBLE_RECORDING_MOTION_RATE];
 
-       LOGD("ret : 0x%x - rate %.20lf", ret, *rate);
+       REC_LOG_INFO("ret[0x%x] - rate %.20lf", ret, *rate);
 
        return ret;
 }
@@ -3479,17 +3485,17 @@ int recorder_attr_set_audio_channel(recorder_h recorder, int channel_count)
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, channel_count);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3502,23 +3508,23 @@ int recorder_attr_get_audio_channel(recorder_h recorder, int *channel_count)
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (channel_count == NULL) {
-               LOGE("channel_count is NULL");
+               REC_LOG_ERROR("channel_count is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *channel_count = pc->cb_info->get_int_value[_RECORDER_GET_INT_AUDIO_CHANNEL];
 
-       LOGD("ret : 0x%x, channel count %d", ret, *channel_count);
+       REC_LOG_INFO("ret[0x%x], channel count[%d]", ret, *channel_count);
 
        return ret;
 }
@@ -3533,17 +3539,17 @@ int recorder_attr_set_orientation_tag(recorder_h recorder, recorder_rotation_e o
        recorder_msg_param param;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        RECORDER_MSG_PARAM_SET(param, INT, set_orientation);
 
        _recorder_msg_send_param1(api, pc->cb_info, &ret, &param);
 
-       LOGD("ret : 0x%x", ret);
+       REC_LOG_INFO("ret[0x%x]", ret);
 
        return ret;
 }
@@ -3556,23 +3562,23 @@ int  recorder_attr_get_orientation_tag(recorder_h recorder, recorder_rotation_e
        recorder_cli_s *pc = (recorder_cli_s *)recorder;
 
        if (!pc || !pc->cb_info) {
-               LOGE("NULL handle");
+               REC_LOG_ERROR("NULL handle");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
        if (orientation == NULL) {
-               LOGE("orientation is NULL");
+               REC_LOG_ERROR("orientation is NULL");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("ENTER");
+       REC_LOG_INFO("ENTER");
 
        _recorder_msg_send(api, pc->cb_info, &ret, RECORDER_CB_TIMEOUT);
 
        if (ret == RECORDER_ERROR_NONE)
                *orientation = (recorder_rotation_e)pc->cb_info->get_int_value[_RECORDER_GET_INT_ORIENTATION_TAG];
 
-       LOGD("ret : 0x%x, orientation %d", ret, *orientation);
+       REC_LOG_INFO("ret[0x%x], orientation[%d]", ret, *orientation);
 
        return ret;
 }
@@ -3588,23 +3594,23 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
        char recv_msg[MUSE_RECORDER_MSG_MAX_LENGTH] = {'\0',};
 
        if (!state) {
-               LOGE("NULL pointer");
+               REC_LOG_ERROR("NULL pointer");
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
-       LOGD("Enter - type %d", type);
+       REC_LOG_INFO("Enter - type[%d]", type);
 
        sock_fd = muse_client_new();
        if (sock_fd < 0) {
 //LCOV_EXCL_START
-               LOGE("muse_client_new failed - returned fd %d", sock_fd);
+               REC_LOG_ERROR("muse_client_new failed - returned fd[%d]", sock_fd);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _GET_DEVICE_STATE_EXIT;
 //LCOV_EXCL_STOP
        }
 
        if (muse_client_get_module_index(MODULE_NAME, &module_index) != MM_ERROR_NONE) {
-               LOGE("muse client get module index failed");
+               REC_LOG_ERROR("muse client get module index failed");
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _GET_DEVICE_STATE_EXIT;
        }
@@ -3615,13 +3621,13 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
                NULL);
        if (!send_msg) {
 //LCOV_EXCL_START
-               LOGE("NULL msg");
+               REC_LOG_ERROR("NULL msg");
                ret = RECORDER_ERROR_OUT_OF_MEMORY;
                goto _GET_DEVICE_STATE_EXIT;
 //LCOV_EXCL_STOP
        }
 
-       LOGD("sock_fd : %d, msg : %s", sock_fd, send_msg);
+       REC_LOG_INFO("sock_fd[%d], msg[%s]", sock_fd, send_msg);
 
        ret = muse_core_msg_send(sock_fd, send_msg);
 
@@ -3630,7 +3636,7 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
 
        if (ret < 0) {
 //LCOV_EXCL_START
-               LOGE("send msg failed %d", errno);
+               REC_LOG_ERROR("send msg failed[%d]", errno);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _GET_DEVICE_STATE_EXIT;
 //LCOV_EXCL_STOP
@@ -3639,7 +3645,7 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
        ret = muse_core_msg_recv(sock_fd, recv_msg, MUSE_RECORDER_MSG_MAX_LENGTH);
        if (ret <= 0) {
 //LCOV_EXCL_START
-               LOGE("recv msg failed %d", errno);
+               REC_LOG_ERROR("recv msg failed[%d]", errno);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _GET_DEVICE_STATE_EXIT;
 //LCOV_EXCL_STOP
@@ -3647,7 +3653,7 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
 
        if (!muse_recorder_msg_get(ret, recv_msg)) {
 //LCOV_EXCL_START
-               LOGE("failed to get return value from msg [%s]", recv_msg);
+               REC_LOG_ERROR("failed to get return value from msg[%s]", recv_msg);
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _GET_DEVICE_STATE_EXIT;
 //LCOV_EXCL_STOP
@@ -3656,13 +3662,13 @@ int recorder_get_device_state(recorder_type_e type, recorder_device_state_e *sta
        if (ret == RECORDER_ERROR_NONE) {
                if (muse_recorder_msg_get(get_device_state, recv_msg)) {
                        *state = (recorder_device_state_e)get_device_state;
-                       LOGD("device type %d state %d", type, *state);
+                       REC_LOG_INFO("device type[%d] state[%d]", type, *state);
                } else {
-                       LOGE("failed to get device state from msg [%s]", recv_msg);
+                       REC_LOG_ERROR("failed to get device state from msg[%s]", recv_msg);
                        ret = RECORDER_ERROR_INVALID_OPERATION;
                }
        } else {
-               LOGE("failed 0x%x", ret);
+               REC_LOG_ERROR("failed[0x%x]", ret);
        }
 
 _GET_DEVICE_STATE_EXIT:
@@ -3682,7 +3688,7 @@ int recorder_add_device_state_changed_cb(recorder_device_state_changed_cb callba
        recorder_cb_info *info = NULL;
 
        if (!callback || !cb_id) {
-               LOGE("invalid pointer %p %p", callback, cb_id);
+               REC_LOG_ERROR("invalid pointer[%p][%p]", callback, cb_id);
                return RECORDER_ERROR_INVALID_PARAMETER;
        }
 
@@ -3691,14 +3697,14 @@ int recorder_add_device_state_changed_cb(recorder_device_state_changed_cb callba
        /* check recorder support */
        ret = recorder_get_device_state(RECORDER_TYPE_AUDIO, &state);
        if (ret != RECORDER_ERROR_NONE) {
-               LOGE("get device state failed");
+               REC_LOG_ERROR("get device state failed");
                g_mutex_unlock(&g_rec_dev_state_changed_cb_lock);
                return ret;
        }
 
        info = g_new0(recorder_cb_info, 1);
        if (!info) {
-               LOGE("info failed");
+               REC_LOG_ERROR("info failed");
                ret = RECORDER_ERROR_OUT_OF_MEMORY;
                goto _DONE;
        }
@@ -3713,12 +3719,12 @@ int recorder_add_device_state_changed_cb(recorder_device_state_changed_cb callba
        if (!g_rec_dev_state_changed_cb_conn) {
                g_rec_dev_state_changed_cb_conn = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, NULL);
                if (!g_rec_dev_state_changed_cb_conn) {
-                       LOGE("failed to get gdbus connection");
+                       REC_LOG_ERROR("failed to get gdbus connection");
                        ret = RECORDER_ERROR_INVALID_OPERATION;
                        goto _DONE;
                }
 
-               LOGD("subscribe signal %s - %s - %s",
+               REC_LOG_INFO("subscribe signal[%s][%s][%s]",
                        MM_CAMCORDER_DBUS_OBJECT,
                        MM_CAMCORDER_DBUS_INTERFACE_RECORDER,
                        MM_CAMCORDER_DBUS_SIGNAL_STATE_CHANGED);
@@ -3727,17 +3733,17 @@ int recorder_add_device_state_changed_cb(recorder_device_state_changed_cb callba
                        NULL, MM_CAMCORDER_DBUS_INTERFACE_RECORDER, MM_CAMCORDER_DBUS_SIGNAL_STATE_CHANGED, MM_CAMCORDER_DBUS_OBJECT, NULL,
                        G_DBUS_SIGNAL_FLAGS_NONE, (GDBusSignalCallback)__recorder_device_state_changed_cb, NULL, NULL);
                if (!g_rec_dev_state_changed_cb_subscribe_id) {
-                       LOGE("failed to get gdbus connection");
+                       REC_LOG_ERROR("failed to get gdbus connection");
                        ret = RECORDER_ERROR_INVALID_OPERATION;
                        goto _DONE;
                }
 
-               LOGD("signal subscribe id %u", g_rec_dev_state_changed_cb_subscribe_id);
+               REC_LOG_INFO("signal subscribe id %u", g_rec_dev_state_changed_cb_subscribe_id);
        }
 
        g_rec_dev_state_changed_cb_list = g_list_prepend(g_rec_dev_state_changed_cb_list, (gpointer)info);
 
-       LOGD("callback id %d", info->id);
+       REC_LOG_INFO("callback id[%d]", info->id);
 
 _DONE:
        if (ret != RECORDER_ERROR_NONE) {
@@ -3770,14 +3776,14 @@ int recorder_remove_device_state_changed_cb(int cb_id)
        /* check recorder support */
        ret = recorder_get_device_state(RECORDER_TYPE_AUDIO, &state);
        if (ret != RECORDER_ERROR_NONE) {
-               LOGE("get device state failed");
+               REC_LOG_ERROR("get device state failed");
                return ret;
        }
 
        g_mutex_lock(&g_rec_dev_state_changed_cb_lock);
 
        if (!g_rec_dev_state_changed_cb_list) {
-               LOGE("there is no callback info");
+               REC_LOG_ERROR("there is no callback info");
                ret = RECORDER_ERROR_INVALID_OPERATION;
                goto _DONE;
        }
@@ -3789,7 +3795,7 @@ int recorder_remove_device_state_changed_cb(int cb_id)
                tmp_list = tmp_list->next;
 
                if (!info) {
-                       LOGW("NULL info");
+                       REC_LOG_WARNING("NULL info");
                        continue;
                }
 
@@ -3812,14 +3818,14 @@ int recorder_remove_device_state_changed_cb(int cb_id)
                                }
                        }
 
-                       LOGD("id %d callback removed", cb_id);
+                       REC_LOG_INFO("id[%d] callback removed", cb_id);
                        ret = RECORDER_ERROR_NONE;
 
                        goto _DONE;
                }
        } while (tmp_list);
 
-       LOGE("id %d callback not found", cb_id);
+       REC_LOG_ERROR("id[%d] callback not found", cb_id);
        ret = RECORDER_ERROR_INVALID_PARAMETER;
 
 _DONE: