Issue Bug Closed

#88256FileWriter creates directories like php: or file: when eg. php://stdout is used a logfile destination

Sven Carstens 05/02/19, 14:45 updated 02/27/20, 12:42

Description

typo3/sysext/core/Classes/Log/Writer/FileWriter.php uses GeneralUtility::mkdir_deep to create probably missing directories for the configured logfile.
When using php://stdout as a logfile destination empty php: directories popup under the web root and under typo3/.

Before creating the directories we have to check for the usage of a [https://www.php.net/manual/en/wrappers.php]

Reviews 4

History 412

  1. Gerrit Code Review pushed patch set 1 for master to change 60643 status New Under Review 05/02/19, 14:48

  2. Gerrit Code Review pushed patch set 1 for master to change 60645 05/03/19, 07:44

  3. Gerrit Code Review pushed patch set 2 for master to change 60643 05/03/19, 07:45

  4. Gerrit Code Review pushed patch set 1 for master to change 60646 05/03/19, 08:17

  5. Gerrit Code Review pushed patch set 2 for master to change 60646 05/03/19, 08:49

  6. Gerrit Code Review pushed patch set 3 for master to change 60646 05/03/19, 09:14

  7. Markus Klein commented 05/06/19, 14:03

    Can you please describe you use case here as well? I suppose containers?

  8. Sven Carstens commented 05/07/19, 15:31

    My use-case here is to set logging to php://stdout inside of containers.

  9. Gerrit Code Review pushed patch set 4 for master to change 60646 01/12/20, 16:47

  10. Gerrit Code Review pushed patch set 1 for 9.5 to change 62898 01/14/20, 14:45

  11. Sven Carstens commented and changed status Under Review Resolved done 0 % 100 % 01/14/20, 15:00

    Applied in changeset commit:ad2ee8ef2cfed2793928d8b8e35553841ebf0496.

  12. Benni Mack changed status Resolved Closed 02/27/20, 12:42