xref: /aosp_15_r20/external/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/qnnpack/log.h (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1 /*
2  * Copyright (c) Facebook, Inc. and its affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #pragma once
10 
11 #include <inttypes.h>
12 
13 #include <clog.h>
14 
15 #ifndef PYTORCH_QNNP_LOG_LEVEL
16 #define PYTORCH_QNNP_LOG_LEVEL CLOG_WARNING
17 #endif
18 
19 CLOG_DEFINE_LOG_DEBUG(
20     pytorch_qnnp_log_debug,
21     "QNNPACK",
22     PYTORCH_QNNP_LOG_LEVEL);
23 CLOG_DEFINE_LOG_INFO(pytorch_qnnp_log_info, "QNNPACK", PYTORCH_QNNP_LOG_LEVEL);
24 CLOG_DEFINE_LOG_WARNING(
25     pytorch_qnnp_log_warning,
26     "QNNPACK",
27     PYTORCH_QNNP_LOG_LEVEL);
28 CLOG_DEFINE_LOG_ERROR(
29     pytorch_qnnp_log_error,
30     "QNNPACK",
31     PYTORCH_QNNP_LOG_LEVEL);
32 CLOG_DEFINE_LOG_FATAL(
33     pytorch_qnnp_log_fatal,
34     "QNNPACK",
35     PYTORCH_QNNP_LOG_LEVEL);
36