[Mono-osx] Can you write to Mac Console with EventLog.WriteEntry() ?

d_v dan.vandermolen at figpsoft.com
Wed Aug 5 09:42:26 EDT 2009

I am writing to the Windows EventLog in Dot Net 2.0 with code like this:

        private void button1_Click(object sender, EventArgs e)
            LogEvent("DirMonitor Started");

        void LogEvent(string message)
            string eventSource = "DirMonitor Test Program";
            EventLog.WriteEntry(eventSource, message);

I was hoping it would write to the Mac OS X 10.5.7 console but can't find
the entries.
Does anyone know how to do this?

View this message in context: http://www.nabble.com/Can-you-write-to-Mac-Console-with-EventLog.WriteEntry%28%29---tp24827293p24827293.html
Sent from the Mono - OSX mailing list archive at Nabble.com.

More information about the Mono-osx mailing list