//===- Logging.cpp --------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/Tools/lsp-server-support/Logging.h" #include "llvm/Support/Chrono.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/raw_ostream.h" usingnamespacemlir; usingnamespacemlir::lsp; void Logger::setLogLevel(Level logLevel) { … } Logger &Logger::get() { … } void Logger::log(Level logLevel, const char *fmt, const llvm::formatv_object_base &message) { … }