I have mysql server running successfully. The error log location is as..
mysql> show variables like '%log_erro%';
+---------------+------------------------+
| Variable_name | Value |
+---------------+------------------------+
| log_error | /var/log/mysql/err.log |
+---------------+------------------------+
1 row in set (0.00 sec)
The issue am facing is that when i am changing the error log location from above to some other location by changing from my.cnf and then restarting the server but the error log is not getting generated and servers starts successfully.
EDIT
After restarting the server the value of the above variable get changed. but i didn't found the error log in that location.