Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 4ccbf040 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

move constructors up

parent f6460cbb
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment