-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log CA client's user/host name in write transactions #72
Comments
hi @xiaoqiangwang ! Any news on this thread? |
I apologise for not tracking the issues for too long. I did a prototype immediately after our discussion, but did not pursue it to the end. I would need to find time to commit the changes. |
I created a branch log_caput implementing the 4th option "Use pcaspy builtin logger".
To enable the caput log,
The log message is taken from caPutLog, i.e. "host user old= new=". But I am open to ideas.
|
hi! let me give my share of opinion. Indeed having clean and standardized access to the CA client info at the Drive class level is very useful for logging and machine diagnostics purposes. I suggest implementing it as an additional argument do Driver.write method in a way that is does not break the previous signature use. CA client info being passed to Driver.write makes it very flexible for the CA server maintainer to implement whatever logging is needed (for example, in files separated from stdout, or in online databases, and so on...). |
To keep backwards compatibility, I considered inspecting method
On the other hand, the
For a database logger, you would need to write a custom handler. |
Thank you for implementing this feature @xiaoqiangwang ! As you commented above, the most flexible solution would be passing this information to the
However, I understand your decision of not changing the signature of this method and I think this implementation fulfills our base case of use and will be very helpful on our ghost hunting here 👻 😄 . |
I have put out the 0.8 release including the 4th option. |
Similar to caPutLog in IOC, it would be good to be able to log CA client's information, i.e. user/host name. The following options are considered:
The text was updated successfully, but these errors were encountered: