atlas::Log class

Base classes

class eckit::Log

Public types

enum Style { SIMPLE = 0, PREFIX = 1, TIMESTAMP = 2 }
using Channel = eckit::Channel
enum (anonymous) { compactFormat = 0, normalFormat = 1, fullFormat = 2, monitorFormat = 3, applicationFormat = 4 }
Output formats.

Public static functions

static auto info() -> Channel&
static auto warning() -> Channel&
static auto trace() -> Channel&
static auto debug() -> Channel&
static void addFortranUnit(int unit, Style = PREFIX, const char* prefix = "")
static void setFortranUnit(int unit, Style = PREFIX, const char* prefix = "")
static auto output_unit() -> int
static auto error_unit() -> int
template<typename T>
static auto debug(const T* = 0) -> Channel&
static auto error() -> Channel&
Channel for error messages.
static auto metrics() -> Channel&
Channel for metrics messages.
static auto panic() -> std::ostream&
Channel for panic messages.
static auto status() -> std::ostream&
Channel accessible through category index.
static auto message() -> std::ostream&
Channel for status messages to Application Monitor.
static auto user() -> UserChannel&
Get the channel for the user.
static auto userInfo() -> std::ostream&
Channel for informative messages tp remote user.
static auto userWarning() -> std::ostream&
Channel for warning messages to remote user.
static auto userError() -> std::ostream&
Channel for error messages to remote user.
static void notifyClient(const std::string&)
Send messages to remote user directly – not using a channel.
static auto syserr(std::ostream&) -> std::ostream&
manipulator that will print the last error message as in perror(2)
static auto null() -> Channel&
static void setStream(std::ostream& out)
static void addStream(std::ostream& out)
static void setFile(const std::string& path)
static void addFile(const std::string& path)
static void setCallback(channel_callback_t cb, void* data = nullptr)
static void addCallback(channel_callback_t cb, void* data = nullptr)
static void flush()
static void reset()
static void print(std::ostream& os)

Enum documentation

enum atlas::Log::(anonymous)

Output formats.

Function documentation

template<typename T>
static Channel& atlas::Log::debug(const T* = 0)

static Channel& atlas::Log::error()

Channel for error messages.

static Channel& atlas::Log::metrics()

Channel for metrics messages.

static std::ostream& atlas::Log::panic()

Channel for panic messages.

static std::ostream& atlas::Log::status()

Channel accessible through category index.

Channel for status messages to Application Monitor

static std::ostream& atlas::Log::message()

Channel for status messages to Application Monitor.

static UserChannel& atlas::Log::user()

Get the channel for the user.

static std::ostream& atlas::Log::userInfo()

Channel for informative messages tp remote user.

static std::ostream& atlas::Log::userWarning()

Channel for warning messages to remote user.

static std::ostream& atlas::Log::userError()

Channel for error messages to remote user.

static void atlas::Log::notifyClient(const std::string&)

Send messages to remote user directly – not using a channel.

static std::ostream& atlas::Log::syserr(std::ostream&)

manipulator that will print the last error message as in perror(2)

static Channel& atlas::Log::null()

static void atlas::Log::setStream(std::ostream& out)

static void atlas::Log::addStream(std::ostream& out)

static void atlas::Log::setFile(const std::string& path)

static void atlas::Log::addFile(const std::string& path)

static void atlas::Log::setCallback(channel_callback_t cb, void* data = nullptr)

static void atlas::Log::addCallback(channel_callback_t cb, void* data = nullptr)

static void atlas::Log::flush()

static void atlas::Log::reset()

static void atlas::Log::print(std::ostream& os)

This website is beyond its original expiry date and the content may be out of date. The site owner has been notified and may choose to extend the expiry date and remove this banner. If you have any questions about this, please visit our support portal.