From 047400e0199e85eb9ab6333917e957628261c38e Mon Sep 17 00:00:00 2001 From: Mikkel Ricky Date: Tue, 21 May 2024 10:44:38 +0200 Subject: [PATCH] 1449: Enabled and configured log_stdout --- composer.json | 1 + composer.lock | 60 ++++++++++++++++++++++++++++- config/sync/core.extension.yml | 1 + config/sync/log_stdout.settings.yml | 5 +++ 4 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 config/sync/log_stdout.settings.yml diff --git a/composer.json b/composer.json index 250740f9..31135e2f 100755 --- a/composer.json +++ b/composer.json @@ -137,6 +137,7 @@ "drupal/image_widget_crop": "^2.2", "drupal/inline_entity_form": "^3.0", "drupal/jquery_ui_accordion": "^2.0", + "drupal/log_stdout": "^1.5", "drupal/maxlength": "^2.1", "drupal/openid_connect": "^3.0@alpha", "drupal/paragraphs": "^1.3", diff --git a/composer.lock b/composer.lock index ad8919ce..e85960be 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "4f8794843385438d16c45e2c581cc7b8", + "content-hash": "61aa53a5a6375a828a96b9beb65bcc4e", "packages": [ { "name": "asm89/stack-cors", @@ -4031,6 +4031,64 @@ "issues": "https://www.drupal.org/project/issues/jquery_ui_touch_punch" } }, + { + "name": "drupal/log_stdout", + "version": "1.5.0", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/log_stdout.git", + "reference": "8.x-1.5" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/log_stdout-8.x-1.5.zip", + "reference": "8.x-1.5", + "shasum": "2adb5d992618ee0a26bb8ca2cf80137654d9e0eb" + }, + "require": { + "drupal/core": "^8.8 || ^9 || ^10" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "8.x-1.5", + "datestamp": "1696840633", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0+" + ], + "authors": [ + { + "name": "Bladedu", + "homepage": "https://www.drupal.org/user/436000" + }, + { + "name": "Bohun Tak", + "homepage": "https://www.drupal.org/user/1205098" + }, + { + "name": "mrhanlon", + "homepage": "https://www.drupal.org/user/764624" + }, + { + "name": "singularo", + "homepage": "https://www.drupal.org/user/143" + } + ], + "description": "This module provides an hook for Drupal Watchdog that directs log messages to php://stdout or php://stderr for better log handling with Docker.", + "homepage": "https://www.drupal.org/project/log_stdout", + "support": { + "source": "https://git.drupalcode.org/project/log_stdout", + "issues": "https://www.drupal.org/project/issues/log_stdout", + "irc": "irc://irc.freenode.org/drupal-support" + } + }, { "name": "drupal/maxlength", "version": "2.1.2", diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index 068b9bc7..0c76d5fe 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -72,6 +72,7 @@ module: layout_discovery: 0 link: 0 locale: 0 + log_stdout: 0 maxlength: 0 media: 0 menu_ui: 0 diff --git a/config/sync/log_stdout.settings.yml b/config/sync/log_stdout.settings.yml new file mode 100644 index 00000000..e686002d --- /dev/null +++ b/config/sync/log_stdout.settings.yml @@ -0,0 +1,5 @@ +_core: + default_config_hash: CkmpJe8_0UrxS99diNYffcf6SJcbRtIxgQTeCOxeOhQ +format: '[@severity] [@type] [@date] @message | uid: @uid | request-uri: @request_uri | refer: @referer | ip: @ip | link: @link' +use_stderr: '1' +langcode: da