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.
LogIO(const LogIO &other)
Copying uses reference semantics, i.e.
ostream & output()
Acumulate output in this ostream.
Command
Special commands to the LogIO object.
@ DEBUG1
Change the message priority to DEBUGGING.
@ SEVERE
Change the message priority to SEVERE.
@ EXCEPTION
Post the accumulated message then throw an exception.
@ NORMAL
Change the message priority to NORMAL.
@ POST
Post the accumulated message.
@ WARN
Change the message priority to WARN.
LogIO(const LogOrigin &OR)
Attach this LogIO object to the supplied origin and global sink.
void postThenThrow(const EXC &exc)
Post the accumulated message at SEVERE priority and then throw an exception.
void post()
Post the accumulated message.
void preparePostThenThrow(const AipsError &x)
Prepare message stream for postThenThrow function.
LogIO & operator=(const LogIO &other)
~LogIO()
The destructor will post any accumulated message that has not already been posted.
LogSinkInterface & localSink()
Occasionally it is useful to interrogate the local log sink.
void priority(LogMessage::Priority which)
Change the priority of the message.
LogMessage::Priority priority()
void sourceLocation(const SourceLocation *where)
Change the location in the origin.
LogIO(LogSink &sink)
Attach this LogIO object to the supplied sink.
LogIO(const LogOrigin &OR, LogSink &sink)
Attach this LogIO object to the supplied origin and sink.
void post(LogMessage &amess)
void postLocally()
Post the accumulated message locally.
void origin(const LogOrigin &origin)
Change the origin of the accumulated message.
Priority
An "importance" which is assigned to each LogMessage.
void postThenThrow(const LogMessage &message, const EXC &exc)
Post message and then throw an AipsError exception containing message.toString().
const LogSinkInterface & localSink() const
Change the sink that this LogSink actually uses.
String: the storage and methods of handling collections of characters.
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
ostream & operator<<(ostream &os, const IComplex &)
Show on ostream.
unsigned long long uInt64
LogIO & operator<<(LogIO &os, LogIO::Command item)
LogIO & operator<<(LogIO &os, const SourceLocation *item)
LogIO & operator<<(LogIO &os, Bool item)
LogIO & operator<<(LogIO &os, DComplex item)
LogIO & operator<<(LogIO &os, const String &item)
LogIO & operator<<(LogIO &os, uInt item)
LogIO & operator<<(LogIO &os, uLong item)
LogIO & operator<<(LogIO &os, Long item)
LogIO & operator<<(LogIO &os, Int64 item)
LogIO & operator<<(LogIO &os, Double item)
LogIO & operator<<(LogIO &os, Complex item)
LogIO & operator<<(LogIO &os, Int item)
LogIO & operator<<(LogIO &os, uInt64 item)
LogIO & operator<<(LogIO &os, const char *item)