roadrunner
                                
                                 roadrunner copied to clipboard
                                
                                    roadrunner copied to clipboard
                            
                            
                            
                        [💡 FEATURE REQUEST]: Ability to change logs format
Plugin
Logger
I have an idea!
Hi @rustatian,
Every time when I start RoadRunner I see in console something like this
2022-11-24T21:39:48.318+0400    ERROR   service         wait    {"error": "signal: interrupt"}
It would be great to change logs format, like this
logger:
     format: "H:i:s  %level_name%  %message% %context%"
Add please the ability to specify the date and time to the name of the log file
Result log file name - rr-2023011017.log or add an option
output: ${LOG_PATH}/rr-$(shell date +"%y%m%d%H").log
Hey @s1lver 👋🏻
You can go ahead and attend tomorrow's RR planning stream (via chat); we can talk about that.
Add please the ability to specify the date and time to the name of the log file
Result log file name - rr-2023011017.log or add an option
output: ${LOG_PATH}/rr-$(shell date +"%y%m%d%H").log
RR configuration supports the env variables, so you may specify date and time like this:
export FOO=$(shell date +"%y%m%d%H") LOG_PATH=$(path) ./rr serve -c .rr.yaml
.rr.yaml:
output: ${LOG_PATH}/rr-{FOO}.log
+1 we need to change log format to be always json