mirror of
https://github.com/objective-see/BlockBlock.git
synced 2026-03-22 07:02:39 +00:00
35 lines
583 B
Objective-C
35 lines
583 B
Objective-C
//
|
|
// file: logging.h
|
|
// project: BlockBlock (shared)
|
|
// description: logging functions (header)
|
|
//
|
|
// created by Patrick Wardle
|
|
// copyright (c) 2017 Objective-See. All rights reserved.
|
|
//
|
|
|
|
#ifndef Logging_h
|
|
#define Logging_h
|
|
|
|
#import <syslog.h>
|
|
|
|
@import Cocoa;
|
|
@import Foundation;
|
|
|
|
//log a msg to syslog
|
|
// also disk, if error
|
|
void logMsg(int level, NSString* msg);
|
|
|
|
//prep/open log file
|
|
BOOL initLogging(NSString* logPath);
|
|
|
|
//get path to log file
|
|
NSString* logFilePath(void);
|
|
|
|
//de-init logging
|
|
void deinitLogging(void);
|
|
|
|
//log to file
|
|
void log2File(NSString* msg);
|
|
|
|
#endif
|