The glass is empty and full, because:
0.5 empty glasses = 0.5 full glasses
2 x 0.5 empty glasses = 2 x 0.5 full glasses
1 empty glass = 1 full glass
It’s just like eating the cake and keeping the cake… I mean pity those who eat the cake and doesn’t get to keep it, right?
This seems to do the trick:
private void logError(string message, string source)
{
System.Diagnostics.EventLog log = new System.Diagnostics.EventLog();
log.Source = source;
log.WriteEntry(message, System.Diagnostics.EventLogEntryType.Error);
log.Close();
}
private void logError(Exception exception, string source)
{
logError(exception.ToString(), source);
}
Put it in your class, or in a special logging class.
Read more:
| Internt/Egna |
SharePoint – Miniprojekt |
Utveckling/Design |
Lookup fält programmagiskt… / ContentTypes |