|
|
1.1 ! root 1: /* ! 2: Copyright (c) 2008 TrueCrypt Foundation. All rights reserved. ! 3: ! 4: Governed by the TrueCrypt License 2.4 the full text of which is contained ! 5: in the file License.txt included in TrueCrypt binary and source code ! 6: distribution packages. ! 7: */ ! 8: ! 9: #include <syslog.h> ! 10: #include "Platform/SystemLog.h" ! 11: ! 12: namespace TrueCrypt ! 13: { ! 14: void SystemLog::WriteDebug (const string &debugMessage) ! 15: { ! 16: openlog ("truecrypt", LOG_PID, LOG_USER); ! 17: syslog (LOG_DEBUG, "%s", debugMessage.c_str()); ! 18: closelog(); ! 19: } ! 20: ! 21: void SystemLog::WriteError (const string &errorMessage) ! 22: { ! 23: openlog ("truecrypt", LOG_PID, LOG_USER); ! 24: syslog (LOG_ERR, "%s", errorMessage.c_str()); ! 25: closelog(); ! 26: } ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.