Skip to content

Commit c1fea94

Browse files
committed
Fix log format
1 parent af86e8c commit c1fea94

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Sources/Logger/Handlers/SerializedLogHandler.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public final class SerializedLogHandler: LogHandler, LogPresentable {
123123
message TEXT,
124124
date REAL NOT NULL,
125125
level INTEGER NOT NULL,
126-
tag Text,
127-
file Text,
126+
tag TEXT,
127+
file TEXT,
128128
line INTEGER,
129129
column INTEGER,
130130
function TEXT

Sources/Logger/LogFormatter.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,20 @@ open class DefaultLogFormatter: LogFormatter {
5757
}
5858

5959
if showFunction {
60-
output += "<\(log.function)> "
60+
output += "<\(log.function)>"
6161
}
6262

6363
if showTag {
6464
if showDefaultTag || log.tag != Tag.default {
65-
output += "[\(log.tag.name)] "
65+
output += "[\(log.tag.name)]"
6666
}
6767
}
6868

6969
if showLevel {
70-
output += "[\(log.level)] "
70+
output += "[\(log.level)]"
7171
}
7272

73+
output += " "
7374
output += log.message
7475

7576
return output

0 commit comments

Comments
 (0)