Welcome! Log In Create A New Profile

Advanced

Re: Is it possible to add milliseconds in error.log and also timestamps

Francis Daly
March 30, 2019 12:10PM
On Fri, Mar 29, 2019 at 07:24:44AM -0400, sivak wrote:

Hi there,

> Also for some of the statements in error.log ,date and time is not added.Is
> there anyway to add it for missed ones?

Can you give some examples of what you do to generate these lines,
what the lines look like, and what you want them to look like instead?

As I understand things: in general in nginx, things written to error_log
have a timestamp included; and things written to stderr do not.

And most things written to stderr are because they were asked for,
or because the error log does not exist.

If you can show specific things that can be improved, then perhaps
someone will be inspired to change them.

I do not think that all stderr output should have a timestamp -- for example:

$ sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful

looks correct to me as-is; as does

$ sbin/nginx -p
nginx: option "-p" requires directory name

Thanks,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Is it possible to add milliseconds in error.log and also timestamps

sivak March 26, 2019 05:47AM

Re: Is it possible to add milliseconds in error.log and also timestamps

Maxim Dounin March 26, 2019 07:10AM

Re: Is it possible to add milliseconds in error.log and also timestamps

sivak March 28, 2019 06:59AM

Re: Is it possible to add milliseconds in error.log and also timestamps

sivak March 29, 2019 07:24AM

Re: Is it possible to add milliseconds in error.log and also timestamps

Francis Daly March 30, 2019 12:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
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