-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aed3aa3
commit 9870ea0
Showing
5 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package eucalyptus | ||
|
||
import escapade.* | ||
import iridescence.* | ||
import anticipation.* | ||
import gossamer.* | ||
import spectacular.* | ||
import hieroglyph.textWidthCalculation.uniform | ||
|
||
package logFormats: | ||
given standardColor[TargetType]: LogFormat[TargetType] = entry => | ||
given displayLevel: Displayable[Level] = level => | ||
val color = level match | ||
case Level.Fine => colors.LightSeaGreen | ||
case Level.Info => colors.YellowGreen | ||
case Level.Warn => colors.Gold | ||
case Level.Fail => colors.Tomato | ||
|
||
e"${Bg(color)}[${colors.Black}($Bold( ${level.show.upper} ))]" | ||
|
||
val realm: Output = e"${colors.MediumSeaGreen}(${entry.realm.show.fit(8)})" | ||
|
||
e"${colors.SlateGray}(${Log.dateFormat.format(entry.timestamp).nn.tt}) ${entry.level} $realm ${entry.message}\n".render |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters