Raj Gopal K
Raj Gopal K

Reputation: 61

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.

 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

Upvotes: 1

Views: 2300

Answers (1)

Kunal S
Kunal S

Reputation: 97

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.

Upvotes: 1

Related Questions