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 <stddef.h> 35 36 #include "include/internal/cef_export.h" 37 38 #ifdef __cplusplus 39 extern "C" { 40 #endif 41 42 // See include/base/cef_logging.h for macros and intended usage. 43 44 /// 45 // Gets the current log level. 46 /// 47 CEF_EXPORT int cef_get_min_log_level(); 48 49 /// 50 // Gets the current vlog level for the given file (usually taken from 51 // __FILE__). Note that |N| is the size *with* the null terminator. 52 /// 53 CEF_EXPORT int cef_get_vlog_level(const char* file_start, size_t N); 54 55 /// 56 // Add a log message. See the LogSeverity defines for supported |severity| 57 // values. 58 /// 59 CEF_EXPORT void cef_log(const char* file, 60 int line, 61 int severity, 62 const char* message); 63 64 #ifdef __cplusplus 65 } 66 #endif // __cplusplus 67 68 #endif // CEF_INCLUDE_INTERNAL_CEF_LOGGING_INTERNAL_H_ 69