FileLoggerOutput
public class FileLoggerOutput : LoggerOutput
Logging output to persistent files that can be archived using Flint’s report gathering.
Note
Currently does not support maximum log sizes or log file rotation.-
Undocumented
Declaration
Swift
public let nameStem: String
-
Undocumented
Declaration
Swift
public let folderName: String
-
Undocumented
Declaration
Swift
public let namingStrategy: LogFileNamingStrategy
-
Undocumented
Declaration
Swift
public let formattingStrategy: LogEventFormattingStrategy
-
Create a new logger output that writes to files, using the shared app group container (if any) specified in
AppInfo.appGroupIdentifier
.- param name: The file name of the log file (minus path). This will be passed to the naming strategy for inclusion.
- param folderName: The name of the folder in which to put the log file, under the container.
- param namingStrategy: An optional strategy for creating log file names. By default a
TimestampLogFileNamingStrategy
will be used.
Declaration
Swift
convenience public init(name: String, folderName: String = "Flint", namingStrategy: LogFileNamingStrategy? = nil) throws
-
Create a new logger output that writes to files.
- param appGroupIdentifier: The optional App Group ID to use to store the logs in a shared container
- param name: The file name of the log file (minus path). This will be passed to the naming strategy for inclusion.
- param folderName: The name of the folder in which to put the log file, under the container.
- param namingStrategy: An optional strategy for creating log file names. By default a
TimestampLogFileNamingStrategy
will be used.
Declaration
Swift
public init(appGroupIdentifier: String?, name: String, folderName: String = "Flint", namingStrategy: LogFileNamingStrategy? = nil) throws
-
Declaration
Swift
public func log(event: LogEvent)
-
Declaration
Swift
public func copyForArchiving(to path: URL)