diff --git a/VectoCommon/VectoCommon/Models/LoggingObject.cs b/VectoCommon/VectoCommon/Models/LoggingObject.cs index ba9f983d88fa0d97e49aa02efbc71b5579c776cc..168fb8da61e2ae045f9b5b8cbbc970202ae24113 100644 --- a/VectoCommon/VectoCommon/Models/LoggingObject.cs +++ b/VectoCommon/VectoCommon/Models/LoggingObject.cs @@ -76,6 +76,21 @@ namespace TUGraz.VectoCommon.Models private readonly Logger _log; + public LoggingObject() + { + _log = NLog.LogManager.GetLogger(GetType().FullName); + } + + public LoggingObject(string fullName) + { + _log = NLog.LogManager.GetLogger(fullName); + } + + public static LoggingObject Logger<T>() + { + return new LoggingObject(typeof(T).ToString()); + } + /// <summary> /// Fatal > Error > Warn > Info > Debug > Trace /// </summary> @@ -182,20 +197,5 @@ namespace TUGraz.VectoCommon.Models { get { return this; } } - - public LoggingObject() - { - _log = NLog.LogManager.GetLogger(GetType().FullName); - } - - public LoggingObject(string fullName) - { - _log = NLog.LogManager.GetLogger(fullName); - } - - public static LoggingObject Logger<T>() - { - return new LoggingObject(typeof(T).ToString()); - } } } \ No newline at end of file