Task #82430

Replace GeneralUtility::syslog with Logging API

Added by Markus Klein over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
Logging
Target version:
Start date:
2017-09-10
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

This API is superseded by the Logging API.


Related issues

Related to TYPO3 Core - Feature #72583: get unified log levels Rejected 2016-01-08
Related to TYPO3 Core - Task #89645: Remove unused systemLog options Closed 2019-11-12

Associated revisions

Revision 27ee6450 (diff)
Added by Markus Klein over 2 years ago

[!!!][TASK] Replace GeneralUtility::sysLog() with Logging API

The function GeneralUtility::sysLog() is deprecated and all calls
are replaced with direct calls to according Logging API methods.

The usual configuration options of the Logging API allows to
define all sorts of destinations for log entries, including
the syslog facility as well as file targets.

Resolves: #82430
Releases: master
Change-Id: Ief3f3f14fd10a3ae90b9df4a5e4e7456c2f7619c
Reviewed-on: https://review.typo3.org/54090
Tested-by: TYPO3com <>
Reviewed-by: Alexander Schnitzler <>
Tested-by: Alexander Schnitzler <>
Reviewed-by: Benni Mack <>
Tested-by: Benni Mack <>

Revision ea160516 (diff)
Added by Markus Klein over 2 years ago

[FOLLOWUP][!!!][TASK] Replace GeneralUtility::sysLog() with Logging API

Do not reference the logger inside a constructor as its injection
happens after the constructor has been executed.
Therefore create a dedicated instance for logging.

Resolves: #82430
Releases: master
Change-Id: Ic943ad53e4ae2abed3fabb55e24b17362de92e1c
Reviewed-on: https://review.typo3.org/54161
Reviewed-by: Alexander Schnitzler <>
Tested-by: TYPO3com <>
Tested-by: Alexander Schnitzler <>
Reviewed-by: Mathias Brodala <>
Reviewed-by: Daniel Goerz <>
Tested-by: Daniel Goerz <>
Reviewed-by: Helmut Hummel <>
Tested-by: Helmut Hummel <>

History

#1 Updated by Markus Klein over 2 years ago

#2 Updated by Markus Klein over 2 years ago

  • Subject changed from Deprecate GeneralUtility::syslog to Replace GeneralUtility::syslog with Logging API

#3 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#4 Updated by Gerrit Code Review over 2 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#5 Updated by Gerrit Code Review over 2 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#6 Updated by Gerrit Code Review over 2 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#7 Updated by Gerrit Code Review over 2 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#8 Updated by Gerrit Code Review over 2 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#9 Updated by Gerrit Code Review over 2 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54090

#10 Updated by Markus Klein over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#11 Updated by Gerrit Code Review over 2 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/54161

#12 Updated by Markus Klein over 2 years ago

  • Status changed from Under Review to Resolved

#13 Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed

#14 Updated by Benni Mack 3 months ago

  • Related to Task #89645: Remove unused systemLog options added

Also available in: Atom PDF