#include "EDoc/LogLevels.h"
#include <sstream>
#include <iostream>
#include <fstream>
Go to the source code of this file.
Namespaces | |
namespace | EDoc |
Data Structures | |
class | EDoc::Logger |
Simple logging singleton class. More... | |
Defines | |
#define | EDOC_DEFAULT_LOG_LEVEL EDOC_LOG_LEVEL_INFO |
#define | EDOC_LOG_WRITE_LEVEL(Level, LevelString) << LevelString << ":" |
If the user did not request otherwise then log the level. | |
#define | EDOC_LOG_WRITE_FILENAME << __FILE__ << ":" |
If the user did not request otherwise then log the filename. | |
#define | EDOC_LOG_WRITE_LINE << __LINE__ << ":" |
If the user did not request otherwise then log the line number. | |
#define | EDOC_LOG_WRITE_FUNCTION |
If the user did not request otherwise then log the function name. | |
#define | EDOC_LOG_WRITE_MESSAGE(Message) << " " << Message |
If the user did not request otherwise then log the message. | |
#define | EDOC_LOG_MESSAGE(Level, LevelString, Message) |
#define | EDOC_IMPL_LOG_LEVEL EDOC_DEFAULT_LOG_LEVEL |
Set the default log level. | |
#define | EDOC_Fatal(Message) EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_FATAL, "FATAL ", Message) |
Create macros for all log levels compiling out code for those outside the log level being used. | |
#define | EDOC_Error(Message) EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_ERROR, "ERROR ", Message) |
#define | EDOC_Warning(Message) EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_WARNING, "WARNING", Message) |
#define | EDOC_Info(Message) EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_INFO, "INFO ", Message) |
#define | EDOC_Debug(Message) |
#define | EDOC_Fine(Message) |
#define | EDOC_Finer(Message) |
#define | EDOC_Finest(Message) |
#define EDOC_Debug | ( | Message | ) |
Definition at line 308 of file Logger.h.
Referenced by EDoc::Dictionary::CalculateCallComplexity(), EDocBFD::HandleEDocSection(), EDoc::mkdirs(), EDoc::BinaryPersistence::Open(), EDocBFD::OpenBFDFile(), EDoc::Dictionary::PostProcessExceptions(), EDoc::Dictionary::ProcessFunction(), EDocBFD::ProcessReadBFD(), EDoc::Dictionary::Read(), EDocBFD::BFDArchive::ReadExtractAll(), EDoc::Persistence::ReadOpen(), EDoc::RunProgram(), and EDoc::RunProgramRedirect().
#define EDOC_Error | ( | Message | ) | EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_ERROR, "ERROR ", Message) |
#define EDOC_Fatal | ( | Message | ) | EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_FATAL, "FATAL ", Message) |
#define EDOC_Fine | ( | Message | ) |
Definition at line 314 of file Logger.h.
Referenced by EDoc::AddPException(), EDoc::AddRethrow(), EDoc::Dictionary::CalculateCallComplexity(), EDoc::Dictionary::CalculatePropogatingExceptions(), EDocBFD::ExtractedBFDFile::ExtractedBFDFile(), EDoc::Dictionary::ProcessCodeBlock(), EDoc::Dictionary::ProcessFunction(), EDocBFD::ProcessReadBFD(), EDoc::Dictionary::ProcessTryBlock(), EDoc::Dictionary::Read(), EDoc::BinaryPersistence::ReadBoolean(), EDoc::Persistence::ReadExtract(), EDoc::Persistence::ReadOpen(), EDoc::BinaryPersistence::ReadString(), EDoc::BinaryPersistence::ReadUInt32(), EDoc::BinaryPersistence::ReadUInt8(), EDoc::Dictionary::UpdateFunctionAddressLists(), EDoc::BinaryPersistence::WriteBoolean(), EDoc::BinaryPersistence::WriteInt32(), EDoc::BinaryPersistence::WriteRecordType(), EDoc::BinaryPersistence::WriteString(), EDoc::BinaryPersistence::WriteUInt32(), EDoc::BinaryPersistence::WriteUInt8(), and EDocBFD::ExtractedBFDFile::~ExtractedBFDFile().
#define EDOC_Finer | ( | Message | ) |
Definition at line 320 of file Logger.h.
Referenced by EDoc::AddPException(), EDoc::AllocNew(), EDoc::Function::ExpandCallGraph(), EDoc::Dictionary::GenerateExceptions(), EDoc::TextPersistence::GetNextLine(), EDoc::Type::Merge(), EDoc::Function::Merge(), EDoc::Dictionary::Merge(), EDoc::Type::operator=(), EDoc::FunctionType::operator=(), EDoc::Function::operator=(), EDoc::Exception::operator==(), EDoc::Dictionary::ProcessCodeBlock(), EDoc::Dictionary::ProcessFunction(), EDoc::Dictionary::ProcessTryBlock(), EDoc::Function::Read(), EDoc::Dictionary::Read(), EDoc::BinaryPersistence::ReadBoolean(), EDoc::BinaryPersistence::ReadInt32(), EDoc::BinaryPersistence::ReadRecordType(), EDoc::BinaryPersistence::ReadString(), EDoc::BinaryPersistence::ReadUInt32(), EDoc::BinaryPersistence::ReadUInt8(), EDoc::ManagedObject::Validate(), and EDoc::Dictionary::Write().
#define EDOC_Finest | ( | Message | ) |
Definition at line 326 of file Logger.h.
Referenced by EDoc::ManagedFile::DecRef(), EDocBFD::HandleEDocSection(), and EDoc::BinaryPersistence::ReadData().
#define EDOC_IMPL_LOG_LEVEL EDOC_DEFAULT_LOG_LEVEL |
#define EDOC_Info | ( | Message | ) | EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_INFO, "INFO ", Message) |
#define EDOC_LOG_MESSAGE | ( | Level, | |||
LevelString, | |||||
Message | ) |
Value:
{ \ ::std::ostringstream stream_jh8732rhb; \ stream_jh8732rhb \ EDOC_LOG_WRITE_LEVEL(Level, LevelString) \ EDOC_LOG_WRITE_FILENAME \ EDOC_LOG_WRITE_LINE \ EDOC_LOG_WRITE_FUNCTION \ EDOC_LOG_WRITE_MESSAGE(Message) \ << std::flush; \ EDoc::Logger::Instance()->LogMessage(stream_jh8732rhb.str()); \ }
#define EDOC_LOG_WRITE_FILENAME << __FILE__ << ":" |
#define EDOC_LOG_WRITE_FUNCTION |
#define EDOC_LOG_WRITE_LEVEL | ( | Level, | |||
LevelString | ) | << LevelString << ":" |
#define EDOC_LOG_WRITE_LINE << __LINE__ << ":" |
#define EDOC_LOG_WRITE_MESSAGE | ( | Message | ) | << " " << Message |
#define EDOC_Warning | ( | Message | ) | EDOC_LOG_MESSAGE(EDOC_LOG_LEVEL_WARNING, "WARNING", Message) |
Definition at line 294 of file Logger.h.
Referenced by EDoc::Persistence::AddTempFile(), EDoc::FunctionType::Merge(), EDoc::Function::Merge(), and EDoc::Persistence::RemoveTempFile().