]> git.sesse.net Git - casparcg/blob - dependencies64/cef/include/internal/cef_logging_internal.h
* Merged html producer and updated to latest CEF version (does not have satisfactory...
[casparcg] / dependencies64 / cef / include / internal / cef_logging_internal.h
1 // Copyright (c) 2014 Marshall A. Greenblatt. All rights reserved.
2 //
3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are
5 // met:
6 //
7 //    * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer.
9 //    * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following disclaimer
11 // in the documentation and/or other materials provided with the
12 // distribution.
13 //    * Neither the name of Google Inc. nor the name Chromium Embedded
14 // Framework nor the names of its contributors may be used to endorse
15 // or promote products derived from this software without specific prior
16 // written permission.
17 //
18 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29
30 #ifndef CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_
31 #define CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_
32 #pragma once
33
34 #include "include/internal/cef_export.h"
35
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39
40 // See include/base/cef_logging.h for macros and intended usage.
41
42 ///
43 // Gets the current log level.
44 ///
45 CEF_EXPORT int cef_get_min_log_level();
46
47 ///
48 // Gets the current vlog level for the given file (usually taken from
49 // __FILE__). Note that |N| is the size *with* the null terminator.
50 ///
51 CEF_EXPORT int cef_get_vlog_level(const char* file_start, size_t N);
52
53 ///
54 // Add a log message. See the LogSeverity defines for supported |severity|
55 // values.
56 ///
57 CEF_EXPORT void cef_log(const char* file,
58                         int line,
59                         int severity,
60                         const char* message);
61
62 #ifdef __cplusplus
63 }
64 #endif  // __cplusplus
65
66 #endif  // CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_