mirror of
https://github.com/samsonjs/grape_logging.git
synced 2026-04-27 14:57:40 +00:00
readme formatter
This commit is contained in:
parent
d7996bd745
commit
b908496d42
1 changed files with 4 additions and 4 deletions
|
|
@ -33,9 +33,9 @@ And then set logger formatter in your main api file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Other features
|
## Other features
|
||||||
|
|
||||||
## Log Format
|
### Log Format
|
||||||
|
|
||||||
With the default configuration you will get nice log message
|
With the default configuration you will get nice log message
|
||||||
|
|
||||||
|
|
@ -43,13 +43,13 @@ With the default configuration you will get nice log message
|
||||||
|
|
||||||
If you prefer some other format I strongly encourage you to do pull request with new formatter class ;)
|
If you prefer some other format I strongly encourage you to do pull request with new formatter class ;)
|
||||||
|
|
||||||
## Logging to file and STDOUT
|
### Logging to file and STDOUT
|
||||||
|
|
||||||
You can to file and STDOUT at once, you just need to assign new logger
|
You can to file and STDOUT at once, you just need to assign new logger
|
||||||
|
|
||||||
logger Logger.new GrapeLogging::MultiIO.new(STDOUT, File.open('path/to/your/logfile.log'), 'a'))
|
logger Logger.new GrapeLogging::MultiIO.new(STDOUT, File.open('path/to/your/logfile.log'), 'a'))
|
||||||
|
|
||||||
## Logging exceptions
|
### Logging exceptions
|
||||||
|
|
||||||
If you want to log exceptions you can do it like this
|
If you want to log exceptions you can do it like this
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue