[Flow] Question about logging
François Suter
fsu-lists at cobweb.ch
Fri Sep 27 09:37:36 CEST 2013
Hi all,
The chapter about logging being empty in The Definitive Guide, I would
need a bit of help on the topic. I have found the base settings in
/Packages/Framework/TYPO3.Flow/Configuration/Settings.yaml.
Can I add my own logger in the same way? Something like:
TYPO3:
Flow:
log:
importLogger:
logger: TYPO3\Flow\Log\Logger
backend: TYPO3\Flow\Log\Backend\FileBackend
backendOptions:
logFileURL: %FLOW_PATH_DATA%Logs/Import.log
createParentDirectories: TRUE
severityThreshold: %LOG_INFO%
maximumLogFileSize: 10485760
logFilesToKeep: 1
logMessageOrigin: FALSE
If yes, how do I then write messages to it from my code (knowing, in
particular, that it would be used from within a command controller)?
Cheers
--
Francois Suter
Work: Cobweb Development Sarl - http://www.cobweb.ch
TYPO3: Help the project! - http://typo3.org/contribute/
Appreciate my work? Support me -
http://www.monpetitcoin.com/en/francois/support-me/
More information about the Flow
mailing list