blob: 3c582f09954d359c6c383276247af9c793d26bce [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);
void Logger::Write(const std::string& buffer) { Write(, buffer.size()); }