Skip to main content

Class MirageLogHandler.Settings

Inheritance​
System.Object
Inherited Members​
Show
Syntax​
[Serializable]
public class Settings

Constructors​

Settings(MirageLogHandler.TimePrefix, Boolean, Boolean)​

Declaration​
public Settings(MirageLogHandler.TimePrefix timePrefix, bool coloredLabel, bool label)
Parameters​
TypeNameDescription
Mirage.Logging.MirageLogHandler.TimePrefixtimePrefix
System.BooleancoloredLabel
System.Booleanlabel

Settings(Boolean, Boolean, Func<String>)​

Declaration​
public Settings(bool coloredLabel, bool label, Func<string> customTimePrefix)
Parameters​
TypeNameDescription
System.BooleancoloredLabel
System.Booleanlabel
System.Func<System.String>customTimePrefix

Fields​

TimePrefix​

Declaration​
public MirageLogHandler.TimePrefix TimePrefix

ColoredLabel​

Declaration​
public readonly bool ColoredLabel

Label​

Declaration​
public readonly bool Label

ColorSeed​

Used to change the colors of names number is multiple by hash unchecked, so small changes to seed will cause large changes in result 403 seems like a good starting seed, common class like NetworkServer and NetworkClient have different colors

Declaration​
public int ColorSeed

ColorSaturation​

Declaration​
public float ColorSaturation

ColorValue​

Declaration​
public float ColorValue

CustomTimePrefix​

Declaration​
public Func<string> CustomTimePrefix

Methods​

AllowColorToLabel(String, String)​

Declaration​
public string AllowColorToLabel(string fullname, string label)
Parameters​
TypeNameDescription
System.Stringfullname
System.Stringlabel
Returns​
TypeDescription
System.String

ColorFromName(String)​

Declaration​
public Color ColorFromName(string fullName)
Parameters​
TypeNameDescription
System.StringfullName
Returns​
TypeDescription
Color