LibreOffice: rtl/logfile.hxx File Reference

LibreOffice LibreOffice 4.4 SDK C/C++ API Reference

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List
- File Members

Classes | Namespaces | Macros
logfile.hxx File Reference
`#include <rtl/logfile.h>`
`#include <rtl/string.hxx>`
`#include <sal/detail/log.h>`

Go to the source code of this file.

## Classes
class | rtl::Logfile
| The intended use for class Logfile is to write time stamp information for profiling purposes. More...

## Namespaces
| rtl

## Macros
#define | RTL_LOGFILE_FORWARD_VIA_SAL_LOG(area, message) SAL_DETAIL_INFO_IF_FORMAT(SAL_DETAIL_ENABLE_LOG_INFO, area, "%s", message)
#define | RTL_LOGFILE_CONTEXT(instance, name) RTL_LOGFILE_FORWARD_VIA_SAL_LOG("logfile", name)
#define | RTL_LOGFILE_CONTEXT_AUTHOR(instance, project, author, name) RTL_LOGFILE_FORWARD_VIA_SAL_LOG(project ".logfile", name)
#define | RTL_LOGFILE_CONTEXT_TRACE(instance, message) RTL_LOGFILE_FORWARD_VIA_SAL_LOG("logfile", message)
#define | RTL_LOGFILE_CONTEXT_TRACE1(instance, frmt, arg1) ((void)arg1,(void)0)
#define | RTL_LOGFILE_CONTEXT_TRACE2(instance, frmt, arg1, arg2) ((void)arg1,(void)arg2,(void)0)
#define | RTL_LOGFILE_CONTEXT_TRACE3(instance, frmt, arg1, arg2, arg3) ((void)arg1,(void)arg2,(void)arg3,(void)0)
#define | RTL_LOGFILE_PRODUCT_TRACE(string) rtl_logfile_longTrace( "| : %s\n", string )
#define | RTL_LOGFILE_PRODUCT_TRACE1(frmt, arg1)
#define | RTL_LOGFILE_PRODUCT_CONTEXT(instance, name) ::rtl::Logfile instance( name )
#define | RTL_LOGFILE_PRODUCT_CONTEXT_TRACE1(instance, frmt, arg1)
#define | RTL_LOGFILE_HASLOGFILE() rtl_logfile_hasLogFile()

## Macro Definition Documentation

#define RTL_LOGFILE_CONTEXT | ( |  | instance,
|  |  | name
| ) |  | RTL_LOGFILE_FORWARD_VIA_SAL_LOG("logfile", name)

#define RTL_LOGFILE_CONTEXT_AUTHOR | ( |  | instance,
|  |  | project,
|  |  | author,
|  |  | name
| ) |  | RTL_LOGFILE_FORWARD_VIA_SAL_LOG(project ".logfile", name)

#define RTL_LOGFILE_CONTEXT_TRACE | ( |  | instance,
|  |  | message
| ) |  | RTL_LOGFILE_FORWARD_VIA_SAL_LOG("logfile", message)

#define RTL_LOGFILE_CONTEXT_TRACE1 | ( |  | instance,
|  |  | frmt,
|  |  | arg1
| ) |  | ((void)arg1,(void)0)

#define RTL_LOGFILE_CONTEXT_TRACE2 | ( |  | instance,
|  |  | frmt,
|  |  | arg1,
|  |  | arg2
| ) |  | ((void)arg1,(void)arg2,(void)0)

#define RTL_LOGFILE_CONTEXT_TRACE3 | ( |  | instance,
|  |  | frmt,
|  |  | arg1,
|  |  | arg2,
|  |  | arg3
| ) |  | ((void)arg1,(void)arg2,(void)arg3,(void)0)

#define RTL_LOGFILE_FORWARD_VIA_SAL_LOG | ( |  | area,
|  |  | message
| ) |  | SAL_DETAIL_INFO_IF_FORMAT(SAL_DETAIL_ENABLE_LOG_INFO, area, "%s", message)

#define RTL_LOGFILE_HASLOGFILE | ( |  | ) | rtl_logfile_hasLogFile()

#define RTL_LOGFILE_PRODUCT_CONTEXT | ( |  | instance,
|  |  | name
| ) |  | ::rtl::Logfile instance( name )

#define RTL_LOGFILE_PRODUCT_CONTEXT_TRACE1 | ( |  | instance,
|  |  | frmt,
|  |  | arg1
| ) |  |

Value:
rtl_logfile_longTrace( "| %s : ", \
instance.getName() ); \
rtl_logfile_trace( frmt, arg1 ); \
rtl_logfile_trace( "\n" )
rtl_logfile_longTrace
SAL_DLLPUBLIC void rtl_logfile_longTrace(char const *format,...)
Like rtl_logfile_trace, but prefixing every log entry with the current time and thread ID...
rtl_logfile_trace
SAL_DLLPUBLIC void rtl_logfile_trace(const sal_Char *pszFormat,...)
This function allows to log arbitrary messages even in a product-environment.

#define RTL_LOGFILE_PRODUCT_TRACE | ( |  | string | ) | rtl_logfile_longTrace( "| : %s\n", string )

#define RTL_LOGFILE_PRODUCT_TRACE1 | ( |  | frmt,
|  |  | arg1
| ) |  |

Value:
rtl_logfile_longTrace( "| : " ); \
rtl_logfile_trace( frmt, arg1 ); \
rtl_logfile_trace( "\n" )
rtl_logfile_longTrace
SAL_DLLPUBLIC void rtl_logfile_longTrace(char const *format,...)
Like rtl_logfile_trace, but prefixing every log entry with the current time and thread ID...
rtl_logfile_trace
SAL_DLLPUBLIC void rtl_logfile_trace(const sal_Char *pszFormat,...)
This function allows to log arbitrary messages even in a product-environment.