mirror of
https://github.com/vgough/encfs.git
synced 2024-12-22 06:30:48 +01:00
5f0806c5cc
git-vendor-name: easylogging git-vendor-dir: vendor/github.com/muflihun/easyloggingpp git-vendor-repository: https://github.com/muflihun/easyloggingpp git-vendor-ref: master
26 lines
562 B
C++
26 lines
562 B
C++
//
|
|
// This file is part of Easylogging++ samples
|
|
// Syslog sample
|
|
//
|
|
// Revision 1.0
|
|
// @author mkhan3189
|
|
//
|
|
|
|
#define ELPP_SYSLOG
|
|
#include "easylogging++.h"
|
|
|
|
INITIALIZE_EASYLOGGINGPP
|
|
|
|
int main(void) {
|
|
|
|
ELPP_INITIALIZE_SYSLOG("syslog_sample", LOG_PID | LOG_CONS | LOG_PERROR, LOG_USER);
|
|
|
|
SYSLOG(INFO) << "My first easylogging++ syslog message";
|
|
|
|
SYSLOG_IF(true, INFO) << "This is conditional info syslog";
|
|
for (int i = 1; i <= 10; ++i)
|
|
SYSLOG_EVERY_N(2, INFO) << "This is [" << i << "] iter of SYSLOG_EVERY_N";
|
|
|
|
return 0;
|
|
}
|