blob: 7301c7e6a577ba01fe17cc7bddf2e01938b84759 [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 <stdarg.h>
#include <stdio.h>
#include <ddk/debug.h>
#include "platform_logger.h"
namespace magma {
bool PlatformLogger::IsInitialized() { return true; }
bool PlatformLogger::Initialize(std::unique_ptr<PlatformHandle> handle) { return true; }
void PlatformLogger::LogVa(LogLevel level, const char* fmt, va_list args) {
switch (level) {
case PlatformLogger::LOG_ERROR:
zxlogvf(ERROR, fmt, args);
return;
case PlatformLogger::LOG_WARNING:
zxlogvf(WARNING, fmt, args);
return;
case PlatformLogger::LOG_INFO:
zxlogvf(INFO, fmt, args);
return;
}
}
} // namespace magma