Class AppendLogEffector
Inheritance
AppendLogEffector
Assembly: Xareus.Unity.Libraries.dll
Syntax
[FunctionDescription("Add log entry to logger.", new string[] { "Logging" })]
public class AppendLogEffector : AUnityEffector
Constructors
AppendLogEffector(Event, Dictionary<string, Parameter>, ContextHolder)
Declaration
public AppendLogEffector(Event @event, Dictionary<string, Parameter> parameters, ContextHolder contexts)
Parameters
Fields
AddTimeStamp
Declaration
[ConfigurationParameter("AddTimeStamp", true, "Whether to add a timestamp to the log entry (not working if CSV is enabled). Default is true.", Necessity.Required)]
protected bool AddTimeStamp
Field Value
AsCSV
Declaration
[ConfigurationParameter("As CSV", false, "Whether to format the log entry as CSV. If true, the log entries will be joined with ';' instead of spaces. Default is false.", Necessity.Required)]
protected bool AsCSV
Field Value
Id
Declaration
[ConfigurationParameter("Id", "The id of the log file to add the entry to. This id should match the id of a log file in the LoggerManager created with CreateLoggerEffector.", Necessity.Required)]
protected string Id
Field Value
LogEntry
Declaration
[ConfigurationParameter("Entry", "The log entry to add. This can be a string or a list of strings that will be joined with spaces.", Necessity.Required)]
protected List<string> LogEntry
Field Value
Methods
SafeEffectorUpdate()
Actual effector code. Note that this code will be executed in unity's thread
Declaration
public override void SafeEffectorUpdate()
Overrides