| 1 |
/* |
| 2 |
* Copyright 2026 Google LLC |
| 3 |
* |
| 4 |
* Use of this source code is governed by a BSD-style license that can be |
| 5 |
* found in the LICENSE file. |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef SkLogPriority_DEFINED |
| 9 |
#define SkLogPriority_DEFINED |
| 10 |
|
| 11 |
/** |
| 12 |
* Note: this file may be included in clients' SkUserConfig.h files, so including any other headers |
| 13 |
* in this file should be avoided. |
| 14 |
*/ |
| 15 |
|
| 16 |
/** |
| 17 |
* SKIA_LOWEST_ACTIVE_LOG_PRIORITY can be defined to one of these values (in |
| 18 |
* SkUserConfig.h) to control Skia's logging behavior. |
| 19 |
* |
| 20 |
* For example: |
| 21 |
* ``` |
| 22 |
* #define SKIA_LOWEST_ACTIVE_LOG_PRIORITY SkLogPriority::kWarning |
| 23 |
* ``` |
| 24 |
* Would cause Skia to log warnings, non-fatal errors, and fatal errors. |
| 25 |
* However, debug logs would be omitted. |
| 26 |
*/ |
| 27 |
enum class SkLogPriority : int { |
| 28 |
kFatal = 0, |
| 29 |
kError = 1, |
| 30 |
kWarning = 2, |
| 31 |
kDebug = 3, |
| 32 |
}; |
| 33 |
|
| 34 |
#endif // SkLogPriority_DEFINED |