Gnash  0.8.11dev
Classes | Namespaces | Macros | Functions
log.h File Reference
#include "rc.h"
#include "dsodefs.h"
#include <fstream>
#include <mutex>
#include <boost/format.hpp>
#include "gettext.h"

Go to the source code of this file.

Classes

class  gnash::LogFile
 
class  gnash::HostFunctionReport
 

Namespaces

 gnash
 Anonymous namespace for callbacks, local functions, event handlers etc.
 

Macros

#define DEFAULT_LOGFILE   "gnash-dbg.log"
 
#define _(String)   gettext (String)
 
#define N_(String)   gettext_noop (String)
 
#define LOG_ONCE(x)
 
#define __FUNCDNAME__   __FUNCTION__
 
#define VERBOSE_PARSE   1
 
#define VERBOSE_ACTION   1
 
#define VERBOSE_ASCODING_ERRORS   1
 
#define VERBOSE_MALFORMED_SWF   1
 
#define VERBOSE_NETWORKING   1
 
#define IF_VERBOSE_PARSE(x)   do { if ( LogFile::getDefaultInstance().getParserDump() ) { x; } } while (0);
 
#define IF_VERBOSE_ACTION(x)   do { if ( LogFile::getDefaultInstance().getActionDump() ) { x; } } while (0);
 
#define IF_VERBOSE_NETWORK(x)   do { if ( LogFile::getDefaultInstance().getNetwork() ) { x; } } while (0);
 
#define IF_VERBOSE_ASCODING_ERRORS(x)   { if ( gnash::RcInitFile::getDefaultInstance().showASCodingErrors() ) { x; } }
 
#define IF_VERBOSE_MALFORMED_SWF(x)   { if ( gnash::RcInitFile::getDefaultInstance().showMalformedSWFErrors() ) { x; } }
 
#define dummystr(x)   # x
 
#define dummyestr(x)   dummystr(x)
 
#define __FUNCTION__   __FILE__ ":" dummyestr(__LINE__)
 
#define __PRETTY_FUNCTION__   __FUNCTION__
 
#define GNASH_REPORT_FUNCTION    gnash::log_debug("entering")
 
#define GNASH_REPORT_RETURN    gnash::log_debug("returning")
 

Functions

void gnash::processLog_network (const boost::format &fmt)
 
void gnash::processLog_error (const boost::format &fmt)
 
void gnash::processLog_unimpl (const boost::format &fmt)
 
void gnash::processLog_trace (const boost::format &fmt)
 
void gnash::processLog_debug (const boost::format &fmt)
 
void gnash::processLog_action (const boost::format &fmt)
 
void gnash::processLog_parse (const boost::format &fmt)
 
void gnash::processLog_security (const boost::format &fmt)
 
void gnash::processLog_swferror (const boost::format &fmt)
 
void gnash::processLog_aserror (const boost::format &fmt)
 
void gnash::processLog_abc (const boost::format &fmt)
 
template<typename FuncType >
void gnash::log_impl (boost::format &fmt, FuncType func)
 
template<typename FuncType , typename Arg , typename... Args>
void gnash::log_impl (boost::format &fmt, FuncType processFunc, Arg arg, Args... args)
 
template<typename StringType , typename FuncType , typename... Args>
void gnash::log_impl (StringType msg, FuncType func, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_network (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_error (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_unimpl (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_trace (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_debug (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_action (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_parse (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_security (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_swferror (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_aserror (StringType msg, Args... args)
 
template<typename StringType , typename... Args>
void gnash::log_abc (StringType msg, Args... args)
 
std::string gnash::hexify (const unsigned char *bytes, size_t length, bool ascii)
 Convert a sequence of bytes to hex or ascii format. More...
 

Macro Definition Documentation

◆ _

#define _ (   String)    gettext (String)

◆ __FUNCDNAME__

#define __FUNCDNAME__   __FUNCTION__

◆ __FUNCTION__

#define __FUNCTION__   __FILE__ ":" dummyestr(__LINE__)

◆ __PRETTY_FUNCTION__

#define __PRETTY_FUNCTION__   __FUNCTION__

◆ DEFAULT_LOGFILE

#define DEFAULT_LOGFILE   "gnash-dbg.log"

◆ dummyestr

#define dummyestr (   x)    dummystr(x)

◆ dummystr

#define dummystr (   x)    # x

◆ GNASH_REPORT_FUNCTION

#define GNASH_REPORT_FUNCTION    gnash::log_debug("entering")

◆ GNASH_REPORT_RETURN

#define GNASH_REPORT_RETURN    gnash::log_debug("returning")

◆ IF_VERBOSE_ACTION

#define IF_VERBOSE_ACTION (   x)    do { if ( LogFile::getDefaultInstance().getActionDump() ) { x; } } while (0);

◆ IF_VERBOSE_ASCODING_ERRORS

#define IF_VERBOSE_ASCODING_ERRORS (   x)    { if ( gnash::RcInitFile::getDefaultInstance().showASCodingErrors() ) { x; } }

◆ IF_VERBOSE_MALFORMED_SWF

#define IF_VERBOSE_MALFORMED_SWF (   x)    { if ( gnash::RcInitFile::getDefaultInstance().showMalformedSWFErrors() ) { x; } }

◆ IF_VERBOSE_NETWORK

#define IF_VERBOSE_NETWORK (   x)    do { if ( LogFile::getDefaultInstance().getNetwork() ) { x; } } while (0);

◆ IF_VERBOSE_PARSE

#define IF_VERBOSE_PARSE (   x)    do { if ( LogFile::getDefaultInstance().getParserDump() ) { x; } } while (0);

◆ LOG_ONCE

#define LOG_ONCE (   x)
Value:
{ \
static bool warned = false; \
if (!warned) { warned = true; x; } \
}

◆ N_

#define N_ (   String)    gettext_noop (String)

◆ VERBOSE_ACTION

#define VERBOSE_ACTION   1

◆ VERBOSE_ASCODING_ERRORS

#define VERBOSE_ASCODING_ERRORS   1

◆ VERBOSE_MALFORMED_SWF

#define VERBOSE_MALFORMED_SWF   1

◆ VERBOSE_NETWORKING

#define VERBOSE_NETWORKING   1

◆ VERBOSE_PARSE

#define VERBOSE_PARSE   1
x
std::int32_t x
Definition: BitmapData_as.cpp:434