mirror of https://github.com/fafhrd91/actix-web
Add some docs
This commit is contained in:
parent
ca159aa27d
commit
5f825a96f1
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue