Skip to content

Commit

Permalink
Reinstate standard logger
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Nov 6, 2023
1 parent cbd97f0 commit 7811d88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/core/logging.scala
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ object LogFormat:
given standard[TargetType]: LogFormat[TargetType] = entry =>
import textWidthCalculation.uniform
val realm: Message = msg"${entry.realm.show.fit(8)}"
msg"${Log.dateFormat.format(entry.timestamp).nn.tt} ${entry.level} $realm ${entry.message}".text+"\n".tt
???
msg"${Log.dateFormat.format(entry.timestamp).nn.tt} ${entry.level} $realm ${entry.message}".text+t"\n"

trait LogFormat[TargetType]:
def apply(entry: Entry): Text
Expand Down
4 changes: 2 additions & 2 deletions src/test/tests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object Tests extends Suite(t"Eucalyptus tests"):
given LogFormat[Out.type] = logFormats.standardColor[Out.type]
given LogFormat[Err.type] = logFormats.standardColor[Err.type]
supervise:
given Log = Log:
given Log = Log.route:
case Warn() => Out
case Fail() => Out
case _ => Out//Syslog(t"tab")
Expand All @@ -42,4 +42,4 @@ object Tests extends Suite(t"Eucalyptus tests"):
Log.warn(t"Warn message")
Log.fail(t"Fail message")
.assert()
Thread.sleep(1000L)
Thread.sleep(1000L)

0 comments on commit 7811d88

Please sign in to comment.