logger middleware for connect with fluentd