11public struct BadLog : IEquatable<BadLog>
57 public static implicit
operator BadLog(
string message)
59 return new BadLog(message);
68 return Position !=
null ? $
"[{Type}][{Mask}] {Message} at {Position.GetPositionInfo()}" : $
"[{Type}][{Mask}] {Message}";
86 public override bool Equals(
object? obj)
103 return left.
Equals(right);
108 return !left.
Equals(right);
Describes a specific position inside a source file.
Implements a Mask for Log Messages.
static readonly BadLogMask Default
Static Helper for the "Default" Mask.
Implements Combination of HashCode Functions Taken from decompiled source of System....
Contains Logging system for the BadScript Runtime.
Contains Utility Functions and Classes.
Represents a Log Message.
readonly BadLogType Type
The Type of the message.
bool Equals(BadLog other)
Returns true if the log is equal to the other log.
readonly string Message
The Contents of the Message.
override bool Equals(object? obj)
Returns true if the log is equal to the other object.
BadLog(string message, BadLogMask? mask=null, BadSourcePosition? position=null, BadLogType type=BadLogType.Log)
Creates a new Log Message.
static bool operator!=(BadLog left, BadLog right)
static bool operator==(BadLog left, BadLog right)
readonly BadLogMask Mask
The Mask of the message.
override int GetHashCode()
Returns the Hash Code for this Instance.
override string ToString()
Returns a string representation of the log.
readonly? BadSourcePosition Position
The (optional) position of the message.