Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Frolov committed Dec 25, 2024
1 parent ef6f784 commit 4c8f357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TechDocs/Log/Log.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ Then, we add a message about the data operation, and finally, we write the log.

## Proxying

It is also possible to proxy logs to your own object. To do this, you need to create an object and inherit from the [LoggingProxy](https://surfstudio.github.io/NodeKit/documentation/nodekit/loggingproxy) protocol. Then, you need to pass this object to `URLChainBuilder`.
It is also possible to proxy logs to your own object. To do this, you need to create an object and inherit from the [LoggingProxy](https://surfstudio.github.io/NodeKit/documentation/nodekit/loggingproxy) protocol. Then, you need to pass this object to `URLChainBuilder`. After setting up LoggingProxy in the URLChainBuilder, the LoggerNode will stop printing logs to the console and will redirect the logs to the LoggingProxy.

The object inherited from `LoggingProxy` in the `handle` method receives a [LogSession](https://surfstudio.github.io/NodeKit/documentation/nodekit/logsession) actor from which you can retrieve request data (such as method and route), and also subscribe to receive logs for that request.

Expand Down

0 comments on commit 4c8f357

Please sign in to comment.