public static void Log(string sClass, string sMethod, string sMessage, _LogPriority prio) { string sMessageToLog; bool bLogToEventLog = false; bool bLogToMessageBox = false; sMessageToLog = Priority(prio) + Where(sClass, sMethod) + sMessage + "."; Trace.WriteLine(sMessageToLog); if (bLogToEventLog) { } if (bLogToMessageBox) { } }
public void Log(string sMessage, _LogPriority prio) { string sMessageToLog; bool bLogToEventLog = false; bool bLogToMessageBox = false; sMessageToLog = Priority(prio) + Where() + sMessage + "."; Trace.WriteLine(sMessageToLog); if (bLogToEventLog) { // todo } if (bLogToMessageBox) { // todo } }
public void Log(string sMessage, _LogPriority prio) { string sMessageToLog; bool bLogToEventLog = false; bool bLogToMessageBox = false; sMessageToLog = Priority(prio) + Where() + sMessage + "."; Trace.WriteLine(sMessageToLog); if ( bLogToEventLog ) { // todo } if ( bLogToMessageBox ) { // todo } }
private static string Priority(_LogPriority prio) { string sPriority = ""; switch (prio) { case _LogPriority.Info: sPriority = "INF "; break; case _LogPriority.Warning: sPriority = "WAR "; break; case _LogPriority.Error: sPriority = "ERR "; break; } return(sPriority); }
private static string Priority(_LogPriority prio) { string sPriority = ""; switch ( prio ) { case _LogPriority.Info: sPriority = "INF "; break; case _LogPriority.Warning: sPriority = "WAR "; break; case _LogPriority.Error: sPriority = "ERR "; break; } return sPriority; }