OverSight/Shared/Logging.h

26 lines
466 B
C
Raw Normal View History

2016-09-12 01:21:14 +01:00
//
// Logging.h
// OverSight
2016-09-12 01:21:14 +01:00
//
// Created by Patrick Wardle on 7/7/16.
// Copyright (c) 2016 Objective-See. All rights reserved.
//
#import <syslog.h>
#import <Foundation/Foundation.h>
//log a msg to syslog
// ->also disk, if error
void logMsg(int level, NSString* msg);
//prep/open log file
BOOL initLogging(void);
//get path to log file
NSString* logFilePath(void);
//de-init logging
void deinitLogging(void);
//log to file
void log2File(NSString* msg);