onnxruntime/onnxruntime/server/logging/console_sink.h
Klein Hu 1a86421aff Create a syslog sink for logging in !Win32 env (#1163)
* Create a syslog sink for logging in !Win32 env

* Move syslog level logic to syslog_sink.c
2019-06-06 16:35:06 +10:00

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