Added logger which is implemented using standard EPICSv3 logging facilities.

This commit is contained in:
miha_vitorovic
2010-12-10 15:12:28 +01:00
parent 6bebb6594c
commit e40e183884
5 changed files with 143 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
/*
* loggerTest.cpp
*
* Created on: Dec 10, 2010
* Author: Miha Vitorovic
*/
#include "logger.h"
#include <errlog.h>
#include <epicsExit.h>
#include <iostream>
using namespace epics::pvAccess;
using std::cout;
int main(int argc, char *argv[]) {
createFileLogger("loggerTest.log");
errlogSetSevToLog(errlogMinor);
errlogSevPrintf( errlogInfo, "This will not appear");
errlogSevPrintf( errlogMajor, "This is a test %d", 42);
errlogSevPrintf( errlogFatal, "This is another test %f", 3.14);
epicsExit(0);
}