carb/logging/Logger.h
File members: carb/logging/Logger.h
// Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
//
// NVIDIA CORPORATION and its licensors retain all intellectual property
// and proprietary rights in and to this software, related documentation
// and any modifications thereto. Any use, reproduction, disclosure or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA CORPORATION is strictly prohibited.
//
#pragma once
#include "../Defines.h"
#include <cstdint>
// example-begin Logger
namespace carb
{
namespace logging
{
struct Logger
{
void(CARB_ABI* handleMessage)(Logger* logger,
const char* source,
int32_t level,
const char* filename,
const char* functionName,
int lineNumber,
const char* message);
// NOTE: This interface, because it is inherited from, is CLOSED and may not have any additional functions added
// without an ILogging major version increase.
};
} // namespace logging
} // namespace carb
// example-end