I would like to use the Name column in the log for identification purposes. Is there a way to do this? I see that LogInternal has a second arguement ValueName, but there doesn't seem to be a way to set this.
Thanks
I would like to use the Name column in the log for identification purposes. Is there a way to do this? I see that LogInternal has a second arguement ValueName, but there doesn't seem to be a way to set this.
Thanks
The Name column in log output record is used only when logging objects and records, and is intended to hold the record/object property name.
You can't set it directly besides using LogObject or LogRecord.
Is there a way to add custom fields to the logging?
It is such a great framework, but is more geared to debugging than general application logging.
I'm not sure what you mean by "general application logging" vs "debugging".
I personally thing TMS Logging has too many specific fields. A logging framework imho should log raw data, the processing of data is done out of scope by other tools.
You can log objects, either directly using LogObject or serializing an object yourself. You can then filter data by properties in those objects, or by searching a specific subtext, or any other similar mechanism.
No, that's not possible.
Thanks. One of the uses is to log web sessions so to be able to set a column to the session id would mean we could easily filter to a specific session with a simple sql query.
I must confess that I have an application where I change the source code of TMS Logging with every update, just to have a ‘Host’ column where I store the IP or the name of a workstation.
Similar requirement here. I was looking at your approach and wondered if there was a built in that could be used. I think I can at least use the Name field by creating a descendant and overriding some of the methods, at least it wouldn't require redoing it everytime there was a release.