Field3D
|
Contains logging-related functions. More...
Enumerations | |
enum | Severity { SevMessage, SevWarning } |
Used by the Msg::print() call. More... | |
Functions | |
FIELD3D_API void | print (Severity severity, const std::string &message) |
Sends the string to the assigned output, prefixing the message with the severity. More... | |
void | print (const std::string &message) |
Sends the string to the assigned output. More... | |
FIELD3D_API void | setVerbosity (int level=1) |
Set the verbosity level of console output: 0 = do not echo anything to the console; >=1 = echo all messages and warnings to the console. More... | |
Variables | |
static int | verbosity = 1 |
Contains logging-related functions.
enum Msg::Severity |
Used by the Msg::print() call.
Enumerator | |
---|---|
SevMessage | |
SevWarning |
void Msg::print | ( | Severity | severity, |
const std::string & | message | ||
) |
Sends the string to the assigned output, prefixing the message with the severity.
Definition at line 66 of file Log.cpp.
References SevMessage, and SevWarning.
Referenced by SparseFile::Reference< Data_T >::closeFile(), Field3DFileBase::closeInternal(), Field3DOutputFile::create(), Field3DOutputFile::createNewPartition(), SparseField< Data_T >::fastLValue(), FileSequence::FileSequence(), findRegistrationFunc(), Field3DFileBase::getIntScalarLayerNames(), Field3DFileBase::getIntVectorLayerNames(), GenericLazyLoadAction< Field_T >::load(), PluginLoader::loadPlugins(), SparseFile::FileReferences::numRefs(), Field3DInputFile::open(), SparseFile::Reference< Data_T >::openFile(), SparseField< Data_T >::iterator::operator*(), SparseField< Data_T >::iterator::operator->(), Field3DInputFile::parseLayer(), print(), SparseFieldIO::read(), NullFieldMappingIO::read(), MatrixFieldMappingIO::read(), FrustumFieldMappingIO::read(), readField(), readFieldMapping(), Field3DInputFile::readGroupMembership(), Field3DInputFile::readLayer(), Field3DInputFile::readMetadata(), Field3DInputFile::readPartitionAndLayerInfo(), Field3DInputFile::readProxyLayer(), ClassFactory::registerField(), ClassFactory::registerFieldIO(), ClassFactory::registerFieldMapping(), ClassFactory::registerFieldMappingIO(), FieldRes::setMapping(), SparseFieldIO::write(), NullFieldMappingIO::write(), MatrixFieldMappingIO::write(), FrustumFieldMappingIO::write(), Hdf5Util::writeAttribute(), writeField(), writeFieldMapping(), Field3DOutputFile::writeGlobalMetadata(), Field3DOutputFile::writeGroupMembership(), DenseFieldIO::writeInternal(), MIPFieldIO::writeInternal(), SparseFieldIO::writeInternal(), Field3DOutputFile::writeLayer(), Field3DOutputFile::writeMapping(), Field3DOutputFile::writeMetadata(), Field3DOutputFile::writeScalarLayer(), and Field3DOutputFile::writeVectorLayer().
|
inline |
Sends the string to the assigned output.
Definition at line 76 of file Log.h.
References FIELD3D_API, FIELD3D_NAMESPACE_HEADER_CLOSE, print(), setVerbosity(), and SevMessage.
void Msg::setVerbosity | ( | int | level = 1 | ) |
Set the verbosity level of console output: 0 = do not echo anything to the console; >=1 = echo all messages and warnings to the console.
Definition at line 86 of file Log.cpp.
References FIELD3D_NAMESPACE_SOURCE_CLOSE.
Referenced by print().