[英]how to pass headers to post method of ngx-logger(serverlURL)?
We are currently planning to use ngx-logger in Angular 4 for server logging, but unable to pass the headers along with serverLoggingUrl. 我们目前正计划在Angular 4中使用ngx-logger进行服务器日志记录,但无法将标头与serverLoggingUrl一起传递。
BrowserModule, HttpModule, LoggerModule.forRoot(
{ serverLoggingUrl: 'http://colwaappdev01.ros.com:20621/commonutil-exp-api/v1/log', level: 'INFO', serverLogLevel: 'INFO' })
],
can we override the _log method to pass the header parameters which is available in NGXLogger 我们可以覆盖_log方法以传递NGXLogger中可用的标头参数吗
https://github.com/dbfannin/ngx-logger/issues/23 https://github.com/dbfannin/ngx-logger/issues/23
the dev asks to utilize the interceptors to add headers. 开发人员要求利用拦截器添加标头。 and is not updating this to add specific feature in ngx-logger package. 并且不会对此进行更新以在ngx-logger软件包中添加特定功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.