Welcome! Log In Create A New Profile


How can I create a custom log?

Posted by Sakib 
How can I create a custom log?
October 20, 2016 10:40AM

Basically I want to create a custom log to write to it if the condition is satisfied within an "if" clause. Example:

location / {
if ($query_string ~ condition) {
custom_log /.../custom_log;

Is this possible? Thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 53
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready