Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Дмитрий Боровиков
Swift Log Syslog
Commits
47e6bc9f
Commit
47e6bc9f
authored
3 years ago
by
Дмитрий Боровиков
Browse files
Options
Downloads
Patches
Plain Diff
Leave default initialiser.
parent
a25c23cf
Branches
master
Tags
1.1.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Sources/LoggingSyslog/SyslogLogHandler.swift
+10
-0
Sources/LoggingSyslog/SyslogLogHandler.swift
with
10 additions
and
0 deletions
Sources/LoggingSyslog/SyslogLogHandler.swift
+
10
−
0
View file @
47e6bc9f
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets