Loading...
This site is best viewed in a modern browser with JavaScript enabled.
Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.
大家写log时是直接打到ngx.log里,还是自己开个文件写?
fatfatson
感觉两者各有好坏,
用ngx.log可以同时看到自己的log和nginx本身的信息,但是格式杂乱,特别是打多行log时被分割得不像样
自己写个文件的话就可以把格式搞得更容易看清,但同时还得再开个窗口监视nginx自己的log,尤其是看其中的request参数
有什么技巧可以兼顾不