alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
logger.hpp File Reference
#include "alpaka/onHost/internal/logger.hpp"
#include "alpaka/onHost/logger/lvl.hpp"
#include <mutex>
#include <source_location>

Go to the source code of this file.

Namespaces

namespace  alpaka
 main alpaka namespace.
namespace  alpaka::onHost
 Functionality which is usable on the host CPU controller thread.
namespace  alpaka::onHost::logger

Macros

#define ALPAKA_LOG_FUNCTION(logLvl)
 Log the entry and exit of a scope.
#define ALPAKA_LOG_INFO(logLvl, callable)
 Write a meta data message to the output.

Functions

void alpaka::onHost::logger::info (concepts::Level auto logLvl, auto const &callable, std::source_location const &location=std::source_location::current())
 Write a meta data message to the output.
auto alpaka::onHost::logger::scope (concepts::Level auto logLvl, std::source_location const &location=std::source_location::current())
 Log the entry and exit of a scope.

Macro Definition Documentation

◆ ALPAKA_LOG_FUNCTION

#define ALPAKA_LOG_FUNCTION ( logLvl)
Value:
void()

Log the entry and exit of a scope.

Parameters
logLvllog level or a sum of log levels

Definition at line 95 of file logger.hpp.

◆ ALPAKA_LOG_INFO

#define ALPAKA_LOG_INFO ( logLvl,
callable )
Value:
void()

Write a meta data message to the output.

Parameters
logLvllog level or a sum of log levels
callablecallable without arguments which provides a string which should be written to the output

Definition at line 106 of file logger.hpp.