dlog
Logging framework
Main Page
Modules
Files
File List
Globals
All
Files
Functions
Enumerations
Enumerator
Groups
include
dlog.h
Go to the documentation of this file.
1
/*
2
* DLOG
3
* Copyright (c) 2005-2008, The Android Open Source Project
4
* Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5
*
6
* Licensed under the Apache License, Version 2.0 (the License);
7
* you may not use this file except in compliance with the License.
8
* You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS,
14
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
* See the License for the specific language governing permissions and
16
* limitations under the License.
17
*/
18
19
27
#ifndef _DLOG_H_
28
#define _DLOG_H_
29
30
31
#include <stdarg.h>
32
#include <string.h>
33
#include <tizen_error.h>
34
#include "dlog-internal.h"
35
36
#ifdef __cplusplus
37
extern
"C"
{
38
#endif
/* __cplusplus */
39
40
41
/*
42
* This is the local tag used for the following simplified
43
* logging macros. You can change this preprocessor definition
44
* before using the other macros to change the tag.
45
*/
46
#ifndef LOG_TAG
47
#define LOG_TAG NULL
48
#endif
49
50
62
typedef
enum
{
63
DLOG_ERROR_NONE
= TIZEN_ERROR_NONE,
64
DLOG_ERROR_INVALID_PARAMETER
= TIZEN_ERROR_INVALID_PARAMETER,
65
DLOG_ERROR_NOT_PERMITTED
= TIZEN_ERROR_NOT_PERMITTED
66
}
dlog_error_e
;
67
68
84
typedef
enum
{
85
DLOG_UNKNOWN
= 0,
86
DLOG_DEFAULT
,
87
DLOG_VERBOSE
,
88
DLOG_DEBUG
,
89
DLOG_INFO
,
90
DLOG_WARN
,
91
DLOG_ERROR
,
92
DLOG_FATAL
,
93
DLOG_SILENT
,
94
DLOG_PRIO_MAX
95
}
log_priority
;
96
97
137
int
dlog_print
(
log_priority
prio,
const
char
*tag,
const
char
*fmt, ...);
138
139
175
int
dlog_vprint
(
log_priority
prio,
const
char
*tag,
const
char
*fmt, va_list ap);
176
177
183
#ifdef __cplusplus
184
}
185
#endif
/* __cplusplus */
186
#endif
/* _DLOG_H_*/
Generated by
1.8.2