1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 23:31:13 -05:00

-rcon tweaks

-so much stuff cant remember
This commit is contained in:
RaidMax
2015-03-23 22:01:05 -05:00
parent dad8fedc78
commit ed4883d675
10 changed files with 290 additions and 79 deletions

View File

@ -14,16 +14,17 @@ namespace IW4MAdmin
None,
}
public Log(file logf, Level mode)
public Log(file logf, Level mode, int port)
{
logFile = logf;
logMode = mode;
Port = port;
}
public void Write(String line, Level lv)
{
String Line = String.Format("{1} - [{0}]: {2}", lv, getTime(), line);
String Line = String.Format("{1} - [{0}]: {2}", Port, getTime(), line);
switch(logMode)
{
case Level.All:
@ -50,5 +51,6 @@ namespace IW4MAdmin
private file logFile;
private Level logMode;
private int Port;
}
}