VLCKit
VLCFileLogger.h
1 /*****************************************************************************
2  * VLCFileLogger.h: [Mobile/TV]VLCKit.framework VLCFileLogger header
3  *****************************************************************************
4  * Copyright (C) 2022 VLC authors and VideoLAN
5  * $Id$
6  *
7  * Authors: Maxime Chapelet <umxprime # videolabs.io>
8  *
9  * This program is free software; you can redistribute it and/or modify it
10  * under the terms of the GNU Lesser General Public License as published by
11  * the Free Software Foundation; either version 2.1 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public License
20  * along with this program; if not, write to the Free Software Foundation,
21  * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22  *****************************************************************************/
23 
24 #import <Foundation/Foundation.h>
25 
26 #import "VLCLogging.h"
27 
28 NS_ASSUME_NONNULL_BEGIN
29 
35 
39 @property (nonatomic, readonly) NSFileHandle *fileHandle;
40 
47 @property (nonatomic, readwrite) id<VLCLogMessageFormatting> formatter;
48 
49 + (instancetype)new NS_UNAVAILABLE;
50 
56 + (instancetype)createWithFileHandle:(NSFileHandle *)fileHandle;
57 
58 - (instancetype)init NS_UNAVAILABLE;
59 
65 - (instancetype)initWithFileHandle:(NSFileHandle *)fileHandle NS_DESIGNATED_INITIALIZER;
66 @end
67 
68 NS_ASSUME_NONNULL_END
VLCFormattedMessageLogging-p
Protocol implemented by any logger that use a formatter.
Definition: VLCLogging.h:160
VLCFileLogger
A simple file logger to be used with a library instance.
Definition: VLCFileLogger.h:34
VLCFileLogger::formatter
id< VLCLogMessageFormatting > formatter
Formatter used.
Definition: VLCFileLogger.h:68
VLCFileLogger::fileHandle
NSFileHandle * fileHandle
The file handle used to write or update the log file.
Definition: VLCFileLogger.h:60