You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.1 KiB
43 lines
1.1 KiB
using Apewer;
|
|
using Apewer.Internals;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Apewer
|
|
{
|
|
|
|
internal class LogItem
|
|
{
|
|
|
|
private Logger _logger;
|
|
private LogType _type;
|
|
|
|
private Exception _exception = null;
|
|
private DateTime _triggered = DateTime.Now;
|
|
private string _content = null;
|
|
private string _target = null;
|
|
private object _custom = null;
|
|
|
|
public DateTime Triggered { get { return _triggered; } }
|
|
|
|
internal LogType Type { get { return _type; } }
|
|
|
|
public Logger Logger { get { return _logger; } set { _logger = value; } }
|
|
|
|
public Exception Exception { get { return _exception; } set { _exception = value; } }
|
|
|
|
public string Content { get { return _content; } set { _content = value ?? ""; } }
|
|
|
|
public string Target { get { return _target; } set { _target = value ?? ""; } }
|
|
|
|
public object Custom { get { return _custom; } set { _custom = value; } }
|
|
|
|
internal LogItem(LogType argType)
|
|
{
|
|
_type = argType;
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|