How to restore logging ufw?

Hello. Accidentally demolished in the server log, ufw is here: /var/log/ufw.log. After that, the ufw stopped keeping the log.
I have already manually created this file, but it has not brought any result, the file remains empty. Also turn off and the ufw turned on again, turned off and turned on the logging - zero sense. Rebooting the server is not tried. What can be done.
Thank you.
March 19th 20 at 08:33
2 answers
March 19th 20 at 08:35
f=/var/log/ufw.log; touch $f; ls-l $f; date?
And that, sorry, you wanted to achieve with this team? :-) - Arnoldo.Nolan commented on March 19th 20 at 08:38
@Arnoldo.Nolan, the answer to the questions that I had after reading the question of the author. - Kaylee.Hahn commented on March 19th 20 at 08:41
It is. Turn off ufw, create a file manually assign rights to the log file, run ufw. - Taurean_Web commented on March 19th 20 at 08:44
March 19th 20 at 08:37
So maybe nothing is happening, that should lagerbuchse? Therefore, in the logs there is nothing.

Find more questions by tags System administrationLinux