Go to the documentation of this file.
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/Logging/LogMessage.h>
35 #include <casacore/casa/Logging/LogSink.h>
36 #include <casacore/casa/BasicSL/Complex.h>
37 #include <casacore/casa/iosstrfwd.h>
LogIO()
Attach this LogIO object to the global sink with no origin information.
void origin(const LogOrigin &origin)
Change the origin of the accumulated message.
void postThenThrow(const LogMessage &message, const EXC &exc)
Post message and then throw an AipsError exception containing message.toString().
std::complex< Double > DComplex
Change the message priority to WARN.
Priority
An "importance" which is assigned to each LogMessage.
~LogIO()
The destructor will post any accumulated message that has not already been posted.
LogMessage::Priority priority()
Post the accumulated message then throw an exception.
Change the message priority to SEVERE.
void sourceLocation(const SourceLocation *where)
Change the location in the origin.
void preparePostThenThrow(const AipsError &x)
Prepare message stream for postThenThrow function.
Command
Special commands to the LogIO object.
ostream-like interface to creating log messages.
LogSinkInterface & localSink()
Occasionally it is useful to interrogate the local log sink.
Distribute LogMessages to their destination(s)
Informational log messages with with time, priority, and origin.
Functions to send commands to a LogIO object. The following commands don't change the accumulated mes...
LogIO & operator<<(LogIO &os, LogIO::Command item)
LogOrigin: The source code location of the originator of a LogMessage.
this file contains all the compiler specific defines
ostream & output()
Acumulate output in this ostream.
void post()
Post the accumulated message.
Change the message priority to NORMAL.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
void postLocally()
Post the accumulated message locally.
Accepts LogMessages and posts them to some destination.
const LogSinkInterface & localSink() const
Change the sink that this LogSink actually uses.
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
std::complex< Float > Complex
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
Post the accumulated message.
LogIO & operator<<(LogIO &os, const String &item)
void postThenThrow(const EXC &exc)
Post the accumulated message at SEVERE priority and then throw an exception.
Change the message priority to DEBUGGING.
Base class for all Casacore library errors.
Functions to accumulate text in the output message. Accumulate text in the output message....
LogIO & operator=(const LogIO &other)
unsigned long long uInt64