chromium/third_party/mediapipe/shims/glog/logging.h

// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_MEDIAPIPE_SHIMS_GLOG_LOGGING_H_
#define THIRD_PARTY_MEDIAPIPE_SHIMS_GLOG_LOGGING_H_

#ifndef LOG

#include "third_party/abseil-cpp/absl/log/absl_check.h"
#include "third_party/abseil-cpp/absl/log/absl_log.h"

#define VLOG(severity)
#define VLOG_IS_ON(severity)

#define LOG(severity)
#define LOG_IF(severity, condition)
#define LOG_EVERY_N(severity, n)
#define LOG_FIRST_N(severity, n)

#elif !defined(VLOG)

#define VLOG
#define VLOG_IS_ON

#endif  // !defined(VLOG)

namespace google {

void AddLogSink(void* unused);
void RemoveLogSink(void* unused);

class LogSink {};

LogSeverity;

int SetVLOGLevel(const char* module_pattern, int log_level);

}  // namespace google

#endif  // THIRD_PARTY_MEDIAPIPE_SHIMS_GLOG_LOGGING_H_