From 4ccbf04048f8c3611ae4a6b8e96972cf95d5837d Mon Sep 17 00:00:00 2001 From: Markus Quaritsch <markus.quaritsch@tugraz.at> Date: Fri, 29 Apr 2016 09:16:13 +0200 Subject: [PATCH] move constructors up --- .../VectoCommon/Models/LoggingObject.cs | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/VectoCommon/VectoCommon/Models/LoggingObject.cs b/VectoCommon/VectoCommon/Models/LoggingObject.cs index ba9f983d88..168fb8da61 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 -- GitLab