Created
November 11, 2014 02:06
-
-
Save AmrEldib/a7dffcaa5ff49218bf91 to your computer and use it in GitHub Desktop.
AppLogger-LoggerClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static AppLogger Logger | |
{ | |
get | |
{ | |
// if logger is null, create an instance. | |
if (AppLogger._Logger == null) | |
{ | |
try | |
{ | |
AppLogger._Logger = new AppLogger("AppLogger"); | |
} | |
catch (LoggerInitializationException) | |
{ | |
AppLogger._Logger = new AppLogger(); | |
} | |
} | |
// return logger | |
return AppLogger._Logger; | |
} | |
private set { AppLogger._Logger = value; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment