mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-24 19:43:35 +00:00
* Create a syslog sink for logging in !Win32 env * Move syslog level logic to syslog_sink.c
19 lines
No EOL
457 B
C++
19 lines
No EOL
457 B
C++
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
// Licensed under the MIT License.
|
|
|
|
#pragma once
|
|
|
|
#include <iostream>
|
|
#include "core/common/logging/logging.h"
|
|
#include "core/common/logging/sinks/ostream_sink.h"
|
|
|
|
namespace onnxruntime {
|
|
namespace server {
|
|
|
|
class ConsoleSink : public onnxruntime::logging::OStreamSink {
|
|
public:
|
|
ConsoleSink() : OStreamSink(std::cout, /*flush*/ true) {
|
|
}
|
|
};
|
|
} // namespace server
|
|
} // namespace onnxruntime
|