Write to ServiceEventSource from Service Fabric WebAPI controller
In my Stateful service, I can write to the ServiceEventSource by calling this: ServiceEventSource.Current.ServiceMessage(this.Context, "this is my log message"); Does anyone know how I can make that same call in my Stateless WebAPI controller? It seems like I'm unable to get the context into the controller. I noticed it's only available in my OwinCommunicationListener . Basically, I want to be able to log my controllers like this: public async Task<IHttpActionResult> Get(string id) { ServiceEventSource.Current.ServiceMessage(this.Context, "this is my log message"); //Do something return Ok(100