setLogger(server, f)This method sets a custom logging function for the server. The provided logger function will be used to log relevant server activities, such as incoming requests and responses. This allows for flexible logging and monitoring, enabling users to integrate with existing logging systems or implement custom logging behavior. The function f should accept a single string.
Let's set it up so that our server logs both to stderr and to a file.
|
|
|
|
|
|
|
|
The object setLogger is a method function.
The source of this document is in JSONRPC.m2:484:0.