Title: Export the access log name, "Happstack.Server.AccessLog.Combined" · Issue #34 · Happstack/happstack-server · GitHub
Open Graph Title: Export the access log name, "Happstack.Server.AccessLog.Combined" · Issue #34 · Happstack/happstack-server
X Title: Export the access log name, "Happstack.Server.AccessLog.Combined" · Issue #34 · Happstack/happstack-server
Description: I just had to set up access logging on a Happstack application, and have one comment. First things first - searching the crash course for the words "log" and "access" quickly shows how to provide a logging function, and then the hackage ...
Open Graph Description: I just had to set up access logging on a Happstack application, and have one comment. First things first - searching the crash course for the words "log" and "access" quickly shows how to provide a...
X Description: I just had to set up access logging on a Happstack application, and have one comment. First things first - searching the crash course for the words "log" and "access" quickly sh...
Opengraph URL: https://github.com/Happstack/happstack-server/issues/34
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Export the access log name, \"Happstack.Server.AccessLog.Combined\"","articleBody":"I just had to set up access logging on a Happstack application, and have one comment.\r\n\r\nFirst things first - searching the [crash course](http://www.happstack.com/docs/crashcourse/index.html) for the words \"log\" and \"access\" quickly shows how to provide a logging function, and then [the hackage page](https://hackage.haskell.org/package/happstack-server) under `Happstack.Server.Types` (not `Happstack.Server.Logging`, surprisingly) further provides the type of access logging functions and explains what `logMAccess` does.\r\n\r\nThe question was, how to configure the server to output access logs to a file instead of to stderr. As [this post](https://stackoverflow.com/questions/18580391/how-to-send-happstack-logs-to-stdout) mentions, you can set the root logger's level to INFO, and also make it log to a file, but as it also mentions, that will also affect all other loggers that are children of the root logger, but does not provide the name of Happstack's logger. I had to search the Happstack source code to get the name \"Happstack.Server.AccessLog.Combined\" used by logMAccess. It would be nice if that were exported so that I wouldn't have to search the source code, and so that it couldn't possibly unexpectedly break if the string changes.","author":{"url":"https://github.com/negatratoron","@type":"Person","name":"negatratoron"},"datePublished":"2017-11-06T06:34:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/34/happstack-server/issues/34"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f46e53ca-a78e-a8ca-e52b-ea04d0d239f7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBCE:4D341:F3573E:1468AD2:6A4D85A2 |
| html-safe-nonce | 9f4472d3749930bacd598217010d4d327420ffe33c59bb36f30f0b010f66ebcc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkNFOjREMzQxOkYzNTczRToxNDY4QUQyOjZBNEQ4NUEyIiwidmlzaXRvcl9pZCI6Ijk2ODkwNTM4MzgxMTE2ODM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f00921c746eac47303a261a74aa23283d4ec5720e4f60a0e8601944b9de34052 |
| hovercard-subject-tag | issue:271372354 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Happstack/happstack-server/34/issue_layout |
| twitter:image | https://opengraph.githubassets.com/94a0302f9dbf9f92f0af948a516377e6e4f5e81efd1d6c957ca4897632fd118f/Happstack/happstack-server/issues/34 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/94a0302f9dbf9f92f0af948a516377e6e4f5e81efd1d6c957ca4897632fd118f/Happstack/happstack-server/issues/34 |
| og:image:alt | I just had to set up access logging on a Happstack application, and have one comment. First things first - searching the crash course for the words "log" and "access" quickly shows how to provide a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | negatratoron |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6bf61c909482ec3072ef5d7a5a28f2a9d214788c9a44793eca1960048cb05ae |
| turbo-cache-control | no-preview |
| go-import | github.com/Happstack/happstack-server git https://github.com/Happstack/happstack-server.git |
| octolytics-dimension-user_id | 1452068 |
| octolytics-dimension-user_login | Happstack |
| octolytics-dimension-repository_id | 28725423 |
| octolytics-dimension-repository_nwo | Happstack/happstack-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28725423 |
| octolytics-dimension-repository_network_root_nwo | Happstack/happstack-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6702a58b419a792226bd21ef0fb1bcb318bbcaa3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width