Provide universal getLogger()
to beforeRouting
#2167
Merged
getLogger()
to beforeRouting
#2167