Welcome! Log In Create A New Profile

Advanced

how to use ngx_log_debug during configuration of a core module

Manlio Perillo
March 24, 2010 10:06AM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi.

I'm having some troubles at using ngx_log_debug during configuration of
a core module I'm writing.

I want to output some log info in the init_conf callback function but:

* If I use cycle->log, the error level is fixed and set to NGX_LOG_INFO,
so debug info will never be logged
* If I use cycle->new_log, the error level is correctly set, but no info
is logged to the file.
If I set log destination to "stderr", info is correctly logged


Should I simply use ngx_log_error(NGX_LOG_INFO, cycle->log)?


Thanks Manlio
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkuqG9AACgkQscQJ24LbaURzVQCeMxJNn3bg5Sn/zreqZzthTcCN
AE0An2UCgjwen80FQNcHRqw39+njDYfA
=vUmP
-----END PGP SIGNATURE-----

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

how to use ngx_log_debug during configuration of a core module

Manlio Perillo 4935 March 24, 2010 10:06AM

Re: how to use ngx_log_debug during configuration of a core module

Maxim Dounin 1392 March 24, 2010 10:42AM

Re: how to use ngx_log_debug during configuration of a core module

Manlio Perillo 1345 March 24, 2010 10:58AM

Re: how to use ngx_log_debug during configuration of a core module

Maxim Dounin 1396 March 24, 2010 11:42AM

Re: how to use ngx_log_debug during configuration of a core module

Manlio Perillo 1562 March 24, 2010 12:48PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

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