|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef LOG_H_ |
|
19 #define LOG_H_ |
|
20 |
|
21 #include "omx_xml_script.h" |
|
22 |
|
23 #define __FILE8__ REINTERPRET_CAST(const TText8*, __FILE__) |
|
24 |
|
25 #define INFO_PRINTF1(p1) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1)) |
|
26 #define INFO_PRINTF2(p1, p2) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2)) |
|
27 #define INFO_PRINTF3(p1, p2, p3) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3)) |
|
28 #define INFO_PRINTF4(p1, p2, p3, p4) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3), (p4)) |
|
29 #define INFO_PRINTF5(p1, p2, p3, p4, p5) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3), (p4), (p5)) |
|
30 #define INFO_PRINTF6(p1, p2, p3, p4, p5, p6) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3), (p4), (p5), (p6)) |
|
31 #define INFO_PRINTF7(p1, p2, p3, p4, p5, p6, p7) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3), (p4), (p5), (p6), (p7)) |
|
32 #define INFO_PRINTF8(p1, p2, p3, p4, p5, p6, p7, p8) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3), (p4), (p5), (p6), (p7), (p8)) |
|
33 #define INFO_PRINTF9(p1, p2, p3, p4, p5, p6, p7, p8, p9) LogExtra(__FILE8__, __LINE__, EOmxScriptSevInfo, (p1), (p2), (p3), (p4), (p5), (p6), (p7), (p8), (p9)) |
|
34 |
|
35 #define WARN_PRINTF1(p1) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1)) |
|
36 #define WARN_PRINTF2(p1, p2) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1), (p2)) |
|
37 #define WARN_PRINTF3(p1, p2, p3) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1), (p2), (p3)) |
|
38 #define WARN_PRINTF4(p1, p2, p3, p4) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1), (p2), (p3), (p4)) |
|
39 #define WARN_PRINTF5(p1, p2, p3, p4, p5) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1), (p2), (p3), (p4), (p5)) |
|
40 #define WARN_PRINTF6(p1, p2, p3, p4, p5, p6) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1), (p2), (p3), (p4), (p5), (p6)) |
|
41 #define WARN_PRINTF7(p1, p2, p3, p4, p5, p6, p7) LogExtra(__FILE8__, __LINE__, EOmxScriptSevWarn, (p1), (p2), (p3), (p4), (p5), (p6), (p7)) |
|
42 |
|
43 #define ERR_PRINTF1(p1) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1)) |
|
44 #define ERR_PRINTF2(p1, p2) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1), (p2)) |
|
45 #define ERR_PRINTF3(p1, p2, p3) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1), (p2), (p3)) ; |
|
46 #define ERR_PRINTF4(p1, p2, p3, p4) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1), (p2), (p3), (p4)) |
|
47 #define ERR_PRINTF5(p1, p2, p3, p4, p5) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1), (p2), (p3), (p4), (p5)) |
|
48 #define ERR_PRINTF6(p1, p2, p3, p4, p5, p6) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1), (p2), (p3), (p4), (p5), (p6)) |
|
49 #define ERR_PRINTF7(p1, p2, p3, p4, p5, p6, p7) LogExtra(__FILE8__, __LINE__, EOmxScriptSevErr, (p1), (p2), (p3), (p4), (p5), (p6), (p7)) |
|
50 |
|
51 #endif /* LOG_H_ */ |