예제 #1
0
 /// <summary>
 /// Creates a filled out log entry
 /// </summary>
 /// <param name="Message">The message that was logged</param>
 /// <param name="Type">The type(s) of message written</param>
 /// <param name="Timestamp">When was the message logged</param>
 /// <param name="FunctionName">What function wrote the message</param>
 /// <param name="ModuleName">Name of the module the function writing this message came from</param>
 /// <param name="Tags">Tags that were applied to the message</param>
 /// <param name="Level">What level was the message written at.</param>
 /// <param name="Runspace">The ID of the runspace that wrote the message.</param>
 /// <param name="ComputerName">The computer the message was generated on.</param>
 /// <param name="TargetObject">The object this message was all about.</param>
 /// <param name="File">The file of the code that wrote the message.</param>
 /// <param name="Line">The line on which the message was written.</param>
 /// <param name="CallStack">The callstack that triggered the write.</param>
 /// <param name="Username">The user responsible for running the code that is writing the message.</param>
 public LogEntry(string Message, LogEntryType Type, DateTime Timestamp, string FunctionName, string ModuleName, List <string> Tags, MessageLevel Level, Guid Runspace, string ComputerName, object TargetObject, string File, int Line, CallStack CallStack, string Username)
 {
     this.Message      = Message;
     this.Type         = Type;
     this.Timestamp    = Timestamp;
     this.FunctionName = FunctionName;
     this.ModuleName   = ModuleName;
     this.Tags         = Tags;
     this.Level        = Level;
     this.Runspace     = Runspace;
     this.ComputerName = ComputerName;
     this.TargetObject = TargetObject;
     this.File         = File;
     this.Line         = Line;
     this.CallStack    = CallStack;
     this.Username     = Username;
 }
예제 #2
0
 /// <summary>
 /// Creates a filled out log entry
 /// </summary>
 /// <param name="Message">The message that was logged</param>
 /// <param name="Type">The type(s) of message written</param>
 /// <param name="Timestamp">When was the message logged</param>
 /// <param name="FunctionName">What function wrote the message</param>
 /// <param name="ModuleName">Name of the module the function writing this message came from</param>
 /// <param name="Tags">Tags that were applied to the message</param>
 /// <param name="Data">Additional data provided by the message writer</param>
 /// <param name="Level">What level was the message written at.</param>
 /// <param name="Runspace">The ID of the runspace that wrote the message.</param>
 /// <param name="ComputerName">The computer the message was generated on.</param>
 /// <param name="TargetObject">The object this message was all about.</param>
 /// <param name="File">The file of the code that wrote the message.</param>
 /// <param name="Line">The line on which the message was written.</param>
 /// <param name="CallStack">The callstack that triggered the write.</param>
 /// <param name="Username">The user responsible for running the code that is writing the message.</param>
 /// <param name="ErrorRecord">An associated error item.</param>
 /// <param name="String">The string key to use for retrieving localized strings</param>
 /// <param name="StringValue">The values to format into the localized string</param>
 public LogEntry(string Message, LogEntryType Type, DateTime Timestamp, string FunctionName, string ModuleName, List <string> Tags, Hashtable Data, MessageLevel Level, Guid Runspace, string ComputerName, object TargetObject, string File, int Line, CallStack CallStack, string Username, PsfExceptionRecord ErrorRecord, string String, object[] StringValue)
 {
     this.Message      = Message;
     this.Type         = Type;
     this.Timestamp    = Timestamp;
     this.FunctionName = FunctionName;
     this.ModuleName   = ModuleName;
     this.Tags         = Tags;
     this.Data         = Data;
     this.Level        = Level;
     this.Runspace     = Runspace;
     this.ComputerName = ComputerName;
     this.TargetObject = TargetObject;
     this.File         = File;
     this.Line         = Line;
     this.CallStack    = CallStack;
     this.Username     = Username;
     this.ErrorRecord  = ErrorRecord;
     this.String       = String;
     this.StringValue  = StringValue;
 }