![]() |
PandaRoot
|
#include <Log.h>
Classes | |
struct | Pointer |
Static Public Member Functions | |
static void | Summary () |
static void | SummaryAtExit () |
static void | AddDecay (int type) |
static ostream & | Debug (unsigned short int code=0, bool count=true) |
static ostream & | Info (bool count=true) |
static ostream & | Warning (bool count=true) |
static ostream & | Error (bool count=true) |
static void | LogInfo (bool flag=true) |
static void | LogWarning (bool flag=true) |
static void | LogError (bool flag=true) |
static void | LogAll (bool flag=true) |
static void | LogPhlupa (int from, int to) |
static void | LogDebug (unsigned short s=0, unsigned short e=65535) |
static void | Assert (bool check, char *text=nullptr) |
static void | Fatal (string text, unsigned short int code=0) |
static void | Fatal (unsigned short int code=0) |
static void | RedirectOutput (void(*func)(), ostream &where= *out) |
static void | RedirectOutput (ostream &where= *out) |
static void | RevertOutput () |
static void | IgnoreFailedAssert (bool flag=true) |
static void | IgnoreRedirection (bool flag=true) |
static void | IgnoreFatal (unsigned short s=0, unsigned short e=65535) |
static void | SetOutput (ostream *newOut) |
static void | SetOutput (ostream &newOut) |
static void | SetWarningLimit (int x) |
static void | Summary () |
static void | SummaryAtExit () |
static void | AddDecay (int type) |
static ostream & | Debug (unsigned short int code=0, bool count=true) |
static ostream & | Info (bool count=true) |
static ostream & | Warning (bool count=true) |
static ostream & | Error (bool count=true) |
static void | LogInfo (bool flag=true) |
static void | LogWarning (bool flag=true) |
static void | LogError (bool flag=true) |
static void | LogAll (bool flag=true) |
static void | LogPhlupa (int from, int to) |
static void | LogDebug (unsigned short s=0, unsigned short e=65535) |
static void | Assert (bool check, char *text=nullptr) |
static void | Fatal (string text, unsigned short int code=0) |
static void | Fatal (unsigned short int code=0) |
static void | RedirectOutput (void(*func)(), ostream &where= *out) |
static void | RedirectOutput (ostream &where= *out) |
static void | RevertOutput () |
static void | IgnoreFailedAssert (bool flag=true) |
static void | IgnoreRedirection (bool flag=true) |
static void | IgnoreFatal (unsigned short s=0, unsigned short e=65535) |
static void | SetOutput (ostream *newOut) |
static void | SetOutput (ostream &newOut) |
static void | SetWarningLimit (int x) |
Static Protected Attributes | |
static streambuf * | bCout |
static streambuf * | bCerr |
static ostream * | out |
static stringstream | buf |
static int | warnLimit |
static int | decays [4] |
static int | dCount |
static int | dRangeS |
static int | dRangeE |
static int | faCount |
static int | faRangeS |
static int | faRangeE |
static int | iCount |
static int | wCount |
static int | eCount |
static int | asCount |
static int | asFailedCount |
static bool | iAction |
static bool | wAction |
static bool | eAction |
static bool | asAction |
static bool | rAction |
static list< Pointer * > * | PointerList |
|
static |
Adds the decay to the counter. The type is: 0 - gun, 1 - no mothers & grandmothers, 2 - no mothers, 3 - ok.
Referenced by SummaryAtExit().
|
static |
Adds the decay to the counter. The type is: 0 - gun, 1 - no mothers & grandmothers, 2 - no mothers, 3 - ok.
|
static |
Asserts logical value. If the assertion fails, the default message or 'text' will be printed and the program will terminate. Program termination can be suppressed by Log::IgnoreFailedAsserts();
|
static |
Asserts logical value. If the assertion fails, the default message or 'text' will be printed and the program will terminate. Program termination can be suppressed by Log::IgnoreFailedAsserts();
Referenced by LogDebug().
|
static |
Four logging entries. Usage: Log::Info()<<"Logging some info: "<<8<<" > "<<7.9<<endl; Use Log::Info(false) if You don't want the message to be counted.
Referenced by SummaryAtExit().
|
static |
Four logging entries. Usage: Log::Info()<<"Logging some info: "<<8<<" > "<<7.9<<endl; Use Log::Info(false) if You don't want the message to be counted.
|
static |
|
static |
Referenced by SummaryAtExit().
|
static |
Terminates the program with added default message or 'text'. It can be suppressed by Log::IgnoreFatal();
|
static |
Terminates the program with added default message or 'text'. It can be suppressed by Log::IgnoreFatal();
Referenced by LogDebug().
|
inlinestatic |
|
inlinestatic |
Definition at line 88 of file 3.52/src/utilities/Log.h.
References Fatal(), out, and RedirectOutput().
Referenced by Fatal().
|
inlinestatic |
Do not exit when Log::Assert() check is false. The number of failed asserts will be listed in the summary.
Definition at line 109 of file Log.h.
References asAction.
|
inlinestatic |
Do not exit when Log::Assert() check is false. The number of failed asserts will be listed in the summary.
Definition at line 109 of file 3.52/src/utilities/Log.h.
References asAction.
|
inlinestatic |
Do not exit when Log::Fatal() with the code within the provided range is called. The number of ignored fatal errors will be listed in the summary.
Definition at line 117 of file Log.h.
References faRangeE, and faRangeS.
|
inlinestatic |
Do not exit when Log::Fatal() with the code within the provided range is called. The number of ignored fatal errors will be listed in the summary.
Definition at line 117 of file 3.52/src/utilities/Log.h.
References faRangeE, and faRangeS.
|
inlinestatic |
Ignores redirections of functions' output. The function will still be called in a normal way.
Definition at line 113 of file 3.52/src/utilities/Log.h.
References rAction.
|
inlinestatic |
|
static |
Referenced by SummaryAtExit().
|
static |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Turns off or on particular types of messages By default, only debugging messages are turned off.
Definition at line 54 of file 3.52/src/utilities/Log.h.
References iAction.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
static |
Redirects output to log. Redirection can be done for a block of code or for one function only. Redirection can be turned off by using Log::IgnoreRedirection(); If the target is one of the log streams (for example): Log::RedirectOutput( someFunction, Log::Info() ); You can turn the function's messages off by turning the apropriate log entries off. The redirected code will still be executed, only messages are redirected.
Referenced by Fatal().
|
static |
Redirects output to log. Redirection can be done for a block of code or for one function only. Redirection can be turned off by using Log::IgnoreRedirection(); If the target is one of the log streams (for example): Log::RedirectOutput( someFunction, Log::Info() ); You can turn the function's messages off by turning the apropriate log entries off. The redirected code will still be executed, only messages are redirected.
|
static |
|
static |
|
inlinestatic |
WARNING! If You're redirecting more than one function, do not forget to use RevertOutput() afterwards.
Definition at line 101 of file Log.h.
|
inlinestatic |
WARNING! If You're redirecting more than one function, do not forget to use RevertOutput() afterwards.
Definition at line 101 of file 3.52/src/utilities/Log.h.
|
inlinestatic |
Change the output of the logged messages. Log::SetOutput(cerr); //changes the output to cerr Log::SetOutput(new ofstream("log.txt")); //changes the output to a file "log.txt"
Definition at line 126 of file Log.h.
References out.
|
inlinestatic |
Change the output of the logged messages. Log::SetOutput(cerr); //changes the output to cerr Log::SetOutput(new ofstream("log.txt")); //changes the output to a file "log.txt"
Definition at line 126 of file 3.52/src/utilities/Log.h.
References out.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Change the limit of warnings that will be displayed. Set to 0 for no limit.
Definition at line 130 of file 3.52/src/utilities/Log.h.
References Photospp::Log::Pointer::address, asAction, asCount, asFailedCount, bCerr, bCout, buf, dCount, decays, dRangeE, dRangeS, eAction, eCount, faCount, faRangeE, faRangeS, Photospp::Log::Pointer::file, i, iAction, iCount, Photospp::Log::Pointer::line, out, PointerList, rAction, Photospp::Log::Pointer::size, wAction, warnLimit, and wCount.
|
static |
Shows the summary of all messages.
|
static |
Shows the summary of all messages.
Referenced by SummaryAtExit().
|
inlinestatic |
Shows the summary at the end of the program.
Definition at line 38 of file 3.52/src/utilities/Log.h.
References AddDecay(), Debug(), Error(), Info(), Summary(), and Warning().
|
inlinestatic |
|
static |
|
static |
Referenced by SummaryAtExit().
|
staticprotected |
Definition at line 140 of file Log.h.
Referenced by IgnoreFailedAssert(), and SetWarningLimit().
|
staticprotected |
Definition at line 139 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 139 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 133 of file Log.h.
Referenced by RevertOutput(), and SetWarningLimit().
|
staticprotected |
Definition at line 133 of file Log.h.
Referenced by RevertOutput(), and SetWarningLimit().
|
staticprotected |
Definition at line 135 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 138 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 137 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 138 of file Log.h.
Referenced by LogAll(), LogDebug(), and SetWarningLimit().
|
staticprotected |
Definition at line 138 of file Log.h.
Referenced by LogAll(), LogDebug(), and SetWarningLimit().
|
staticprotected |
Definition at line 140 of file Log.h.
Referenced by LogAll(), LogError(), and SetWarningLimit().
|
staticprotected |
Definition at line 139 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 138 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 138 of file Log.h.
Referenced by IgnoreFatal(), and SetWarningLimit().
|
staticprotected |
Definition at line 138 of file Log.h.
Referenced by IgnoreFatal(), and SetWarningLimit().
|
staticprotected |
Definition at line 140 of file Log.h.
Referenced by LogAll(), LogInfo(), and SetWarningLimit().
|
staticprotected |
Definition at line 139 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 134 of file Log.h.
Referenced by Fatal(), SetOutput(), and SetWarningLimit().
|
staticprotected |
Definition at line 152 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 140 of file Log.h.
Referenced by IgnoreRedirection(), and SetWarningLimit().
|
staticprotected |
Definition at line 140 of file Log.h.
Referenced by LogAll(), LogWarning(), and SetWarningLimit().
|
staticprotected |
Definition at line 136 of file Log.h.
Referenced by SetWarningLimit().
|
staticprotected |
Definition at line 139 of file Log.h.
Referenced by SetWarningLimit().