Barotrauma Client Doc
Barotrauma.Networking.ServerLog Class Reference

Public Types

enum class  MessageType {
  Chat , ItemInteraction , Inventory , Attack ,
  Spawning , Wiring , ServerMessage , ConsoleUsage ,
  Money , DoSProtection , Karma , Talent ,
  Traitors , Error
}
 

Public Member Functions

 ServerLog (string serverName)
 
void WriteLine (string line, MessageType messageType, bool logToConsole=true)
 
void Save ()
 
void CreateLogFrame ()
 
void AssignLogFrame (GUIButton inReverseButton, GUIListBox inListBox, GUIComponent tickBoxContainer, GUITextBox searchBox)
 
bool ClearFilter (GUIComponent button, object _)
 

Public Attributes

string ServerName
 
GUIButton LogFrame
 

Static Public Attributes

const string SavePath = "ServerLogs"
 

Properties

int LinesPerFile [get, set]
 

Detailed Description

Member Enumeration Documentation

◆ MessageType

Enumerator
Chat 
ItemInteraction 
Inventory 
Attack 
Spawning 
Wiring 
ServerMessage 
ConsoleUsage 
Money 
DoSProtection 
Karma 
Talent 
Traitors 
Error 

Definition at line 31 of file BarotraumaShared/SharedSource/Networking/ServerLog.cs.

Constructor & Destructor Documentation

◆ ServerLog()

Barotrauma.Networking.ServerLog.ServerLog ( string  serverName)

Member Function Documentation

◆ AssignLogFrame()

void Barotrauma.Networking.ServerLog.AssignLogFrame ( GUIButton  inReverseButton,
GUIListBox  inListBox,
GUIComponent  tickBoxContainer,
GUITextBox  searchBox 
)

◆ ClearFilter()

bool Barotrauma.Networking.ServerLog.ClearFilter ( GUIComponent  button,
object  _ 
)

◆ CreateLogFrame()

void Barotrauma.Networking.ServerLog.CreateLogFrame ( )

◆ Save()

void Barotrauma.Networking.ServerLog.Save ( )

◆ WriteLine()

void Barotrauma.Networking.ServerLog.WriteLine ( string  line,
MessageType  messageType,
bool  logToConsole = true 
)

Member Data Documentation

◆ LogFrame

GUIButton Barotrauma.Networking.ServerLog.LogFrame

◆ SavePath

const string Barotrauma.Networking.ServerLog.SavePath = "ServerLogs"
static

◆ ServerName

string Barotrauma.Networking.ServerLog.ServerName

Property Documentation

◆ LinesPerFile

int Barotrauma.Networking.ServerLog.LinesPerFile
getset