Is there a logging variable which returns the Type (Music, Jingle, etc.) of the item being logged?
That would be very helpful.
Also, has anyone else noticed that %g in a logging Format string returns a GUID? I don’t know if it’s a ‘freshly created’ GUID or if it’s a GUID related in some way to the item being logged.
There’s no variable for the item type yet, but I can add one. Which letter do you propose?
The GUID you get with %g is a “unique identifier” for this particular playout event. Each time you start an item, a new GUID is generated. When you stop the player again, the same GUID is passed to the stop logging. The internal mAirListDB logging uses the GUID in stop logging in order to identify the start logging entry and update it with the actual playback duration. (Remember that the same file/item can play twice at the same time, so the DB needs to know which one was stopped.)
May I assume that it’s favorable to use the internal item type IDs (usually the same text as the one displayed in the combo boxes, but without any spaces - e.g. “StationID” vs. “Station ID”)? Because they are always in English, no matter what language the GUI is set to.
The GUID would be really useful for some improvements I’m looking to make to our log script / database, particularly for working out the duration in this way.
Do you have an example of a GUID? I’m just wondering if the length is always the same, or if it is more like an incrementing number?
In the context of logging, expect %g to contain a random string of random length. Currently, GUIDs are used because they provide a reasonable way to generate such random strings. But that could change anytime without further notice.