E
E
exedis2015-09-25 20:39:28
PHP
exedis, 2015-09-25 20:39:28

How to log requests, actions in a separate table?

Hello, is it possible to do logging (recording admin actions) directly into a separate database table? I tried it with a trigger, but somehow it didn’t work out very well, here is an example
BEGIN
INSERT INTO `log` (`name`) VALUES (CONCAT(NEW.`login`),
NOW()) ;
END
Can you give an example too? Everywhere there are examples of writing to a log file, but for me it is in a table.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Сергей Протько, 2015-09-25
@Fesor

CQRS + Event Sourcing

Макс, 2015-09-25
@MaxDukov

да... не в моде нынче поиск.
Как записывать все запросы в таблицу?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question