OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_ENVIRONMENT_LOGGER_H_ | 5 #ifndef MOJO_PUBLIC_C_ENVIRONMENT_LOGGER_H_ |
6 #define THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_ENVIRONMENT_LOGGER_H_ | 6 #define MOJO_PUBLIC_C_ENVIRONMENT_LOGGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 // |MojoLogLevel|: Used to specify the type of log message. Values are ordered | 10 // |MojoLogLevel|: Used to specify the type of log message. Values are ordered |
11 // by severity (i.e., higher numerical values are more severe). | 11 // by severity (i.e., higher numerical values are more severe). |
12 | 12 |
13 typedef int32_t MojoLogLevel; | 13 typedef int32_t MojoLogLevel; |
14 | 14 |
15 #ifdef __cplusplus | 15 #ifdef __cplusplus |
16 const MojoLogLevel MOJO_LOG_LEVEL_VERBOSE = -1; | 16 const MojoLogLevel MOJO_LOG_LEVEL_VERBOSE = -1; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Sets the minimum log level (see above) to the lesser of |minimum_log_level| | 51 // Sets the minimum log level (see above) to the lesser of |minimum_log_level| |
52 // and |MOJO_LOG_LEVEL_FATAL|. | 52 // and |MOJO_LOG_LEVEL_FATAL|. |
53 // | 53 // |
54 // Warning: This function may not be thread-safe, and should not be called | 54 // Warning: This function may not be thread-safe, and should not be called |
55 // concurrently with other |MojoLogger| functions. (In some environments -- | 55 // concurrently with other |MojoLogger| functions. (In some environments -- |
56 // such as Chromium -- that share a logger across applications, this may mean | 56 // such as Chromium -- that share a logger across applications, this may mean |
57 // that it is almost never safe to call this.) | 57 // that it is almost never safe to call this.) |
58 void (*SetMinimumLogLevel)(MojoLogLevel minimum_log_level); | 58 void (*SetMinimumLogLevel)(MojoLogLevel minimum_log_level); |
59 }; | 59 }; |
60 | 60 |
61 #endif // THIRD_PARTY_MOJO_SRC_MOJO_PUBLIC_C_ENVIRONMENT_LOGGER_H_ | 61 #endif // MOJO_PUBLIC_C_ENVIRONMENT_LOGGER_H_ |
OLD | NEW |