delba / Log

An extensible logging framework for Swift
MIT License
830 stars 63 forks source link

Formatter: left pad Levels #8

Closed dev4dev closed 8 years ago

dev4dev commented 8 years ago

Hello, thanks for cool library, I have small question about customizing it. How could I customize formatting of Level component of log to be right alighend?

change this:

[2016-08-05 11:37:00.476] AppDelegate.swift:30 DEBUG: Hello World 12 3 45
[2016-08-05 11:37:00.477] AppDelegate.swift:31 ERROR: Lalalal
[2016-08-05 11:37:00.477] AppDelegate.swift:32 TRACE: Lalalal
[2016-08-05 11:37:00.477] AppDelegate.swift:33 WARNING: Lalalal
[2016-08-05 11:37:00.477] AppDelegate.swift:34 INFO: Lalalal

to something like this:

[2016-08-05 11:37:00.476] AppDelegate.swift:30   DEBUG| Hello World 12 3 45
[2016-08-05 11:37:00.477] AppDelegate.swift:31   ERROR| Lalalal
[2016-08-05 11:37:00.477] AppDelegate.swift:32   TRACE| Lalalal
[2016-08-05 11:37:00.477] AppDelegate.swift:33 WARNING| Lalalal
[2016-08-05 11:37:00.477] AppDelegate.swift:34    INFO| Lalalal
delba commented 8 years ago

Hi @dev4dev , there is currently no way I can think about to do that :/

That's a very good idea though, I'll ping you if / when I implement it !

Thanks :)