Add some docs

This commit is contained in:
jdeepee 2020-10-21 19:09:11 +01:00
parent ca159aa27d
commit 5f825a96f1
1 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,8 @@ impl Logger {
self
}
/// Register a closure to be run on the logger.
/// Note: output from closure will be present at end of logger output. Multiple closure will be ran in the order they are registed.
pub fn register_closure(
mut self,
closure: fn(req: &ServiceRequest) -> String,