Log to file?

Permalink Browser Info Environment
Is there any possibility we could get this addon to dump the logs to file? This way we could parse it and track info. It would be valuable to get login, source IP and other such info to log file.

Type: Pre-Sale
Status: In Progress
BloodyIron
View Replies:
A3020 replied on at Permalink Reply
A3020
Why don't you query the Log table? You can filter by channel 'Authentication'.

It's currently not possible to log to a file. You could however try to 'override' the LoginLog.php class in /src. You then have to replace the '$l->write' lines with your own code.

Or try to change the log handler:
$l->logger->pushHandler(new RotatingFileHandler('log.txt'));
BloodyIron replied on at Permalink Reply
BloodyIron
Something I'm working on needs to be able to monitor the logs as they happen and act on them, security stuff. Logging to file is traditionally one reliable way to do it. I'm not against other methods, but "periodic" logging isn't sufficient for my needs.

concrete5 Environment Information

v8.1.0

Browser User-Agent String

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.