How do I programmatically or regularly clear the Operational PrintService event log?
问题 We are trying to do some in-house print auditing for printers we have running on a Windows Server 2008 R2. After enabling the log via Event Viewer in: Applications and Services Logs -> Microsoft -> Windows -> PrintService -> Operational I'm successfully grabbing events with the ID 307 by tailoring the answer to this question to my needs and then storing those events in a database for use in other applications. // Build formatted query string string eventID = "307"; string logSource =