Skip to content

Commit f225924

Browse files
committed
Use standard output instead of standard error by default as stated in the doc
1 parent eb63754 commit f225924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/JSONLogger.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public struct JSONLogger : LogHandler {
8989
public let jsonCodersForStringConvertibles: (JSONEncoder, JSONDecoder)?
9090

9191
public static func forJSONSeq(
92-
on fd: FileDescriptor = .standardError,
92+
on fd: FileDescriptor = .standardOutput,
9393
label: String,
9494
jsonEncoder: JSONEncoder = Self.defaultJSONEncoder,
9595
jsonCodersForStringConvertibles: (JSONEncoder, JSONDecoder) = Self.defaultJSONCodersForStringConvertibles,
@@ -107,7 +107,7 @@ public struct JSONLogger : LogHandler {
107107

108108
public init(
109109
label: String,
110-
fd: FileDescriptor = .standardError,
110+
fd: FileDescriptor = .standardOutput,
111111
lineSeparator: Data = Data("\n".utf8), prefix: Data = Data(), suffix: Data = Data(),
112112
jsonEncoder: JSONEncoder = Self.defaultJSONEncoder,
113113
jsonCodersForStringConvertibles: (JSONEncoder, JSONDecoder) = Self.defaultJSONCodersForStringConvertibles,

0 commit comments

Comments
 (0)