alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onHost::logger::internal Namespace Reference

Classes

struct  Info
 Write a meta data message to the output. More...
struct  Scoped
 Log the entry and exit of a scope. More...
struct  StdErr
 Write all output to std::cerr. More...

Functions

std::string adjDetails (std::string const &str)
 shortening the function signatures to become human-readable
std::string adjStringLength (std::string str, size_t n, char const paddingCharacter=' ')
 Adjust the length of a string to a minimum length.
void indent (auto &writer, int indentLvl)
 Indent the message if needed and forward it to the output writer.

Function Documentation

◆ adjDetails()

std::string alpaka::onHost::logger::internal::adjDetails ( std::string const & str)
inline

shortening the function signatures to become human-readable

If the name is simplified depends on the preprocessor define ALPAKA_LOG_DETAIL_SHORT

Definition at line 108 of file logger.hpp.

◆ adjStringLength()

std::string alpaka::onHost::logger::internal::adjStringLength ( std::string str,
size_t n,
char const paddingCharacter = ' ' )
inline

Adjust the length of a string to a minimum length.

Parameters
strinput string
nminimum number of characters, if the string is shorter than this number, it will be padded with a padding character
Returns
new string with a minimum number of characters

Definition at line 94 of file logger.hpp.

◆ indent()

void alpaka::onHost::logger::internal::indent ( auto & writer,
int indentLvl )
inline

Indent the message if needed and forward it to the output writer.

If input is indented depends on the preprocessor define ALPAKA_LOG_INDENT

Definition at line 77 of file logger.hpp.