Commit 47e6bc9f authored by Дмитрий Боровиков's avatar Дмитрий Боровиков
Browse files

Leave default initialiser.

parent a25c23cf
Branches master
Tags 1.1.0
No related merge requests found
Showing with 10 additions and 0 deletions
......@@ -66,6 +66,16 @@ public struct SyslogLogHandler: LogHandler {
}
/// Create a `SyslogLogHandler`.
public init(label: String) {
self.label = label
}
/// Create an extended `SyslogLogHandler`.
/// - Parameters:
/// - label: Log message label text
/// - ident: Log message indentification text. Prepended before label
/// - facility: Log facility. See syslog(3)
/// - option: Log option. See syslog(3)®
public init(label: String, ident: String? = nil, facility: Facility = .user, option: Option = .odelay) {
self.label = label
openlog(ident, option.rawValue, facility.rawValue);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment