example log handler middleware
add pat dependency