Fixes code according to modern code style. Fixes a few expression bugs.
This commit is contained in:
parent
89eea25e5f
commit
970fd563b2
3324 changed files with 441118 additions and 433755 deletions
|
|
@ -18,50 +18,46 @@
|
|||
*
|
||||
***************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using DiagELog = System.Diagnostics.EventLog;
|
||||
|
||||
namespace Server
|
||||
{
|
||||
public static class EventLog
|
||||
{
|
||||
static EventLog()
|
||||
{
|
||||
if ( !DiagELog.SourceExists( "RunUO" ) )
|
||||
{
|
||||
DiagELog.CreateEventSource( "RunUO", "Application" );
|
||||
}
|
||||
}
|
||||
public static class EventLog
|
||||
{
|
||||
static EventLog()
|
||||
{
|
||||
if (!DiagELog.SourceExists("RunUO")) DiagELog.CreateEventSource("RunUO", "Application");
|
||||
}
|
||||
|
||||
public static void Error( int eventID, string text )
|
||||
{
|
||||
DiagELog.WriteEntry( "RunUO", text, EventLogEntryType.Error, eventID );
|
||||
}
|
||||
public static void Error(int eventID, string text)
|
||||
{
|
||||
DiagELog.WriteEntry("RunUO", text, EventLogEntryType.Error, eventID);
|
||||
}
|
||||
|
||||
public static void Error( int eventID, string format, params object[] args )
|
||||
{
|
||||
Error( eventID, string.Format( format, args ) );
|
||||
}
|
||||
public static void Error(int eventID, string format, params object[] args)
|
||||
{
|
||||
Error(eventID, string.Format(format, args));
|
||||
}
|
||||
|
||||
public static void Warning( int eventID, string text )
|
||||
{
|
||||
DiagELog.WriteEntry( "RunUO", text, EventLogEntryType.Warning, eventID );
|
||||
}
|
||||
public static void Warning(int eventID, string text)
|
||||
{
|
||||
DiagELog.WriteEntry("RunUO", text, EventLogEntryType.Warning, eventID);
|
||||
}
|
||||
|
||||
public static void Warning( int eventID, string format, params object[] args )
|
||||
{
|
||||
Warning( eventID, string.Format( format, args ) );
|
||||
}
|
||||
public static void Warning(int eventID, string format, params object[] args)
|
||||
{
|
||||
Warning(eventID, string.Format(format, args));
|
||||
}
|
||||
|
||||
public static void Inform( int eventID, string text )
|
||||
{
|
||||
DiagELog.WriteEntry( "RunUO", text, EventLogEntryType.Information, eventID );
|
||||
}
|
||||
public static void Inform(int eventID, string text)
|
||||
{
|
||||
DiagELog.WriteEntry("RunUO", text, EventLogEntryType.Information, eventID);
|
||||
}
|
||||
|
||||
public static void Inform( int eventID, string format, params object[] args )
|
||||
{
|
||||
Inform( eventID, string.Format( format, args ) );
|
||||
}
|
||||
}
|
||||
public static void Inform(int eventID, string format, params object[] args)
|
||||
{
|
||||
Inform(eventID, string.Format(format, args));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue