Charmed Quark Systems, Ltd. - Support Forums and Community

Full Version: CQC Events
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
is there a facility that records CQC events. i know i can use the CQCEventDump command to monitor events realtime, but is there a way to see what events have previously been fired.

also, i'm having a brain fart and can't locate log dumps on the forums. how do i simply dump the CQC logs from the command prompt - i know i've seen this, but just can't find it.
For a dump of the last up to 256, you can either use the CQC Command Prompt and run "CIDLogAdmin Dump". Or, if on 2.2, you can use the log filter dialog in the same way and then snap to file.

If you want the whole thing, then you can do "CIDLogAdmin TestDump". It will create a file in \Windows\System32\ that has the whole contents of the log server.

For logging the events, there's currently no way to do that. But you could set up a triggered event that has no filter so that it always gets called. It could invoke a CML macro that can log the info. If you derive your CML macro from a particular CML base class (see the event guide technical doc), then you will have access to the raw event data.
Dean Roddey Wrote:For logging the events, there's currently no way to do that. But you could set up a triggered event that has no filter so that it always gets called. It could invoke a CML macro that can log the info. If you derive your CML macro from a particular CML base class (see the event guide technical doc), then you will have access to the raw event data.

Instead of going the triggered event route + macro, I'd suggest using the Database driver instead. I'm using it to log all my alarm sensors in the house currently.
Please elaborate a bit.
How do you store the alarm events in the database?
I can see how you can query it in the datalog_db driver, but I don't know how you would get them in there.
I followed this tutorial and it worked great. Just create a table entry for each field you want to log.

http://www.charmedquark.com/vb_forum/sho...ostcount=4
That TestDump is one big file. I hadn't flushed the log in a while and it had 11888 logged events/messages. When I use the CQCLogAdmin Dump I only get 128 events. I have 2.2.3 installed. Would it be possible to provide a log dump that is a csv file with field headers in the first row?
I could provide another dump format.
A csv format would be very handy to work with. A while back I started playing with log files and was parsing out the logdump myself into a csv, but going directly to csv would be much easier.
what would be coool is if the dump had time/date stamps for the events. i know we can send this to a database, but when you have 100's of events that you're tracking, having a time/date stamp for each event would rock.

-- maybe it's there and i'm missing it :confused:
It's in the logs, but that isn't what gets written to the database for the DataLogDB driver. In order to have the time an event occurs written you need to create a fld using the fld driver and when the event happens write the time the event occurs to that fld. Configure the fld you write the time to in the DataSchedule and you now have time data being written. Your use of it at that point is a little limited, but its better than nothing. I outlined a method to do this very thing here.
Pages: 1 2