[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Client Session is writing to windows application event log!

  • Thread starter Thread starter tpavlovic
  • Start date Start date
Status
Not open for further replies.
T

tpavlovic

Guest
You can write a wrapper around LOG-MANAGER and then write to Windows Event Log. &Global-define EventSource "TestProgress" &Global-define EventLog "Application" USING System.Diagnostics.*. IF NOT EventLog:SourceExists({&EventSource}) THEN EventLog:CreateEventSource({&EventSource}, {&EventLog}). EventLog:WriteEntry({&EventSource}, "This is an event"). The problem is that you can't use EventLog:SourceExists and EventLog:CreateEventSource as non-administrator so first you'd have to create EventSource as an administrator and then you can use WriteEntry as a regular user.

Continue reading...
 
Status
Not open for further replies.
Back
Top