Skip to content
This repository has been archived by the owner on Mar 14, 2020. It is now read-only.

Log events like motion, login attempts in bluecherry.log #142

Open
antonsviridenko opened this issue Nov 21, 2016 · 5 comments
Open

Log events like motion, login attempts in bluecherry.log #142

antonsviridenko opened this issue Nov 21, 2016 · 5 comments
Assignees
Labels

Comments

@antonsviridenko
Copy link

  1. motion event
I(id/camera name): Motion detected
  1. successful login event
I(): user "username" logged in from xx.xx.xx.xx
  1. failed login attempt
W(): failed login attempt for user "username" from xx.xx.xx.xx
@quixand
Copy link

quixand commented Nov 21, 2016

It looks like you don't have a log handler in PHP, that would be a super-quick win for login auditing and any other GUI/ajax events

@antonsviridenko
Copy link
Author

It looks like you don't have a log handler in PHP,

what exactly do you mean?

@quixand
Copy link

quixand commented Nov 21, 2016

I had a look through the php in /usr/share/bluecherry/www (i think) I couldnt see anything handling logging. I don't have access to my test environment at the moment. its seems you have error and access logs from apache but thats it, please correct me if i'm wrong

@antonsviridenko
Copy link
Author

Yes, that is, only apache access and error logs now. But syslog() is supported by PHP, I can log to bluecherry.log from PHP, I think there shouldn't be any problems

@quixand
Copy link

quixand commented Nov 21, 2016

I've had some success with pear Log (https://pear.php.net/package/Log/) but on more recent projects i've gone to Monolog, its a bit more extendable and is the default in Symfony I think (https://github.com/Seldaek/monolog)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants