[RFC] syslog output from SAL_* messages
Riccardo Magliocchetti
riccardo.magliocchetti at gmail.com
Mon Dec 17 12:15:21 PST 2012
Hello,
i've refreshed my patch for adding possibility to send SAL_* messages to
syslog. I have two issues:
- am not able to send the ENABLE_SYSLOG definition down to
sal/osl/unx/salinit.cxx
- if i add calls to SAL_INFO in vcl/headless/headlessinst.cxx like, i
see the fprintf but i don't see the SAL_INFO one. Tried with SAL_WARN,
same result.
diff --git a/vcl/headless/headlessinst.cxx b/vcl/headless/headlessinst.cxx
index 7793d85..204500f 100644
--- a/vcl/headless/headlessinst.cxx
+++ b/vcl/headless/headlessinst.cxx
@@ -42,6 +42,8 @@ public:
HeadlessSalInstance::HeadlessSalInstance( SalYieldMutex *pMutex ) :
SvpSalInstance( pMutex)
{
+ SAL_INFO("vcl", "ciao\n");
+ ::fprintf(stdout, "LibreOffice\n");
}
HeadlessSalInstance::~HeadlessSalInstance()
Any help appreciated
thanks,
riccardo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-ability-to-send-SAL_-messages-to-syslog.patch
Type: text/x-diff
Size: 4351 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20121217/de326364/attachment.patch>
More information about the LibreOffice
mailing list