blob: b3e58fe54838d8c8f358c4bb82864dfb3baf5080 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "logger.h"
#include <iostream>
Logger& Logger::Get() {
static Logger logger;
return logger;
}
void Logger::Write(const char* s, size_t count) {
buffer_.append(s, count);
if (kGuestOutput) {
std::cout.write(s, count);
std::cout.flush();
}
}