reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
AndroidLogger.cxx
Go to the documentation of this file.
1
2#ifdef __ANDROID__
3
4#include <android/log.h>
5
7
8using namespace resip;
9using namespace std;
10
11const char *AndroidLogger::logTag = "reSIProcate";
12
13bool
14AndroidLogger::operator()(Log::Level level,
15 const Subsystem& subsystem,
16 const Data& appName,
17 const char* file,
18 int line,
19 const Data& message,
21 const Data& instanceName)
22{
24 switch(level)
25 {
26 case Log::Crit:
28 break;
29 case Log::Err:
31 break;
32 case Log::Warning:
34 break;
35 case Log::Info:
37 break;
38 case Log::Debug:
40 break;
41 case Log::Stack:
43 break;
44 case Log::StdErr:
46 break;
47 default:
49 }
50
52 return true;
53}
54
55
56#endif
57
58/* ====================================================================
59 *
60 * Copyright (c) 2007 Daniel Pocock All rights reserved.
61 *
62 * Redistribution and use in source and binary forms, with or without
63 * modification, are permitted provided that the following conditions
64 * are met:
65 *
66 * 1. Redistributions of source code must retain the above copyright
67 * notice, this list of conditions and the following disclaimer.
68 *
69 * 2. Redistributions in binary form must reproduce the above copyright
70 * notice, this list of conditions and the following disclaimer in
71 * the documentation and/or other materials provided with the
72 * distribution.
73 *
74 * 3. Neither the name of the author(s) nor the names of any contributors
75 * may be used to endorse or promote products derived from this software
76 * without specific prior written permission.
77 *
78 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTORS "AS IS" AND
79 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
80 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
81 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTORS BE LIABLE
82 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
83 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
84 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
85 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
86 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
87 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
88 * SUCH DAMAGE.
89 *
90 * ====================================================================
91 *
92 *
93 */
94
An alternative to std::string, encapsulates an arbitrary buffer of bytes.
Definition Data.hxx:90
Class used to specify what sub-system given sections of code belong to, for use by the logging system...
Definition Subsystem.hxx:34
dcm! – add UnusedChecking(_enum) below;
void list()
Definition userAdmin.cxx:66