File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ TWITTER_CLIENT_ID=
2121TWITTER_CLIENT_SECRET =
2222
2323REDIS_URL = tcp://127.0.0.1:6379
24+
25+ LOGGER_PATH = logs/app.log
Original file line number Diff line number Diff line change 8585 "description" : " PGP Verification API URL" ,
8686 "value" : " " ,
8787 "required" : false
88+ },
89+ "LOGGER_PATH" : {
90+ "description" : " File path for logging (defaults to stdin)" ,
91+ "value" : " php://stdin" ,
92+ "required" : true
8893 }
8994 },
9095 "formation" : {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ function installDB() {
4646
4747function make_logger ($ channel ) {
4848 $ log = new Logger ($ channel );
49- $ log ->pushHandler (new StreamHandler (dirname ( __FILE__ ). ' /../logs/app.log ' , Logger::DEBUG ));
49+ $ log ->pushHandler (new StreamHandler (getenv ( ' LOGGER_PATH ' ) , Logger::DEBUG ));
5050 $ log ->pushProcessor (new Monolog \Processor \WebProcessor );
5151 return $ log ;
5252}
You can’t perform that action at this time.
0 commit comments