|
|
5.0
/*
Copyright (c) 2008 TrueCrypt Foundation. All rights reserved.
Governed by the TrueCrypt License 2.4 the full text of which is contained
in the file License.txt included in TrueCrypt binary and source code
distribution packages.
*/
#include <syslog.h>
#include "Platform/SystemLog.h"
namespace TrueCrypt
{
void SystemLog::WriteDebug (const string &debugMessage)
{
openlog ("truecrypt", LOG_PID, LOG_USER);
syslog (LOG_DEBUG, "%s", debugMessage.c_str());
closelog();
}
void SystemLog::WriteError (const string &errorMessage)
{
openlog ("truecrypt", LOG_PID, LOG_USER);
syslog (LOG_ERR, "%s", errorMessage.c_str());
closelog();
}
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.