Return a log entry for application logs, prefilled with the correlation ids out of the supplied request.
(h http.Header)
| 168 | // Return a log entry for application logs, |
| 169 | // prefilled with the correlation ids out of the supplied request. |
| 170 | func Application(h http.Header) *logrus.Entry { |
| 171 | fields := logrus.Fields{ |
| 172 | "type": "application", |
| 173 | } |
| 174 | setCorrelationIds(fields, h) |
| 175 | return Logger.WithFields(fields) |
| 176 | } |
| 177 | |
| 178 | // LifecycleStart logs the start of an application |
| 179 | // with the configuration struct or map as paramter. |