Get all the files a user changed in a GIT repository with this command:
git log --pretty="%H" --author="git.user.name" | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq
Get all the files a user changed in a GIT repository with this command:
git log --pretty="%H" --author="git.user.name" | while read commit_hash; do git show --oneline --name-only $commit_hash | tail -n+2; done | sort | uniq
wer sich das ab und an fragt, kann mit
php -i | grep log
angezeigt bekommen, wo die aktuelle php installation ihre logs hinschreibt.
Um in Agavi custom logfiles zu erstellen, benötigt man einen eigens erstellten logger + appender in der app/config/logger.xml.
<!-- logs only custom messages in a custom log -->
<logger name="custom" class="AgaviLogger" level="'custom'">
<appenders>
<appender>CustomLogAppender</appender>
</appenders>
</logger>
<appender name="CustomLogAppender" class="AgaviFileLoggerAppender" layout="DateTimeLayout">
<ae:parameters>
<ae:parameter name="file">%core.app_dir%/log/custom.log</ae:parameter>
</ae:parameters>
</appender>
Dann kann man den Logger quasi überall wo der LoggerManager verfügbar ist benutzen.
$message = 'Custom logging message'; $this->getContext()->getLoggerManager()->log(new AgaviLoggerMessage($message, 'custom'), 'custom');
Und in der bash das logfile einsehen.
tail -f app/log/custom.log