class
#include <atlas/runtime/Log.h>
Log
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)
#include <eckit/log/Log.h>
Output formats.
Function documentation
#include <eckit/log/Log.h>
template<typename T>
static Channel& atlas:: Log:: debug(const T* = 0)
static Channel& atlas:: Log:: error()
#include <eckit/log/Log.h>
Channel for error messages.
static Channel& atlas:: Log:: metrics()
#include <eckit/log/Log.h>
Channel for metrics messages.
static std:: ostream& atlas:: Log:: panic()
#include <eckit/log/Log.h>
Channel for panic messages.
static std:: ostream& atlas:: Log:: status()
#include <eckit/log/Log.h>
Channel accessible through category index.
Channel for status messages to Application Monitor
static std:: ostream& atlas:: Log:: message()
#include <eckit/log/Log.h>
Channel for status messages to Application Monitor.
static UserChannel& atlas:: Log:: user()
#include <eckit/log/Log.h>
Get the channel for the user.
static std:: ostream& atlas:: Log:: userInfo()
#include <eckit/log/Log.h>
Channel for informative messages tp remote user.
static std:: ostream& atlas:: Log:: userWarning()
#include <eckit/log/Log.h>
Channel for warning messages to remote user.
static std:: ostream& atlas:: Log:: userError()
#include <eckit/log/Log.h>
Channel for error messages to remote user.
static void atlas:: Log:: notifyClient(const std:: string&)
#include <eckit/log/Log.h>
Send messages to remote user directly – not using a channel.
static std:: ostream& atlas:: Log:: syserr(std:: ostream&)
#include <eckit/log/Log.h>
manipulator that will print the last error message as in perror(2)
static Channel& atlas:: Log:: null()
#include <eckit/log/Log.h>
static void atlas:: Log:: setStream(std:: ostream& out)
#include <eckit/log/Log.h>
static void atlas:: Log:: addStream(std:: ostream& out)
#include <eckit/log/Log.h>
static void atlas:: Log:: setFile(const std:: string& path)
#include <eckit/log/Log.h>
static void atlas:: Log:: addFile(const std:: string& path)
#include <eckit/log/Log.h>
static void atlas:: Log:: setCallback(channel_callback_t cb,
void* data = nullptr)
#include <eckit/log/Log.h>
static void atlas:: Log:: addCallback(channel_callback_t cb,
void* data = nullptr)
#include <eckit/log/Log.h>
static void atlas:: Log:: flush()
#include <eckit/log/Log.h>
static void atlas:: Log:: reset()
#include <eckit/log/Log.h>
static void atlas:: Log:: print(std:: ostream& os)
#include <eckit/log/Log.h>