Skip to content

Commit

Permalink
chore(#213): configure logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Jumpy-Squirrel committed Dec 22, 2023
1 parent bdd3876 commit 6c7cffa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Create and publish Docker image
on:
push:
branches:
- 'main'
- 'issue-213-log-config'

jobs:
build-and-push-image:
Expand Down
4 changes: 3 additions & 1 deletion httpd-container.conf
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,10 @@ DocumentRoot "/static-html/htdocs"
</Files>

ErrorLog /dev/stdout
CustomLog /dev/stdout combined
ErrorLogFormat "{ \"@timestamp\":\"%{cu}tZ\", \"log.level\": \"WARN\", \"function\" : \"[%-m:%l]\" , \"process\" : \"[pid %P:tid %T]\" , \"message\" : \"%M\"}"
LogLevel warn
LogFormat "{ \"@timestamp\":\"%{%Y-%m-%dT%T}t.%{usec_frac}t%{%z}t\", \"remoteIP\":\"%a\", \"host\":\"%V\", \"requestPath\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" json
TransferLog /dev/stdout

<IfModule mime_module>
TypesConfig /etc/apache2/mime.types
Expand Down

0 comments on commit 6c7cffa

Please sign in to comment.