RiptideLogger.Initialize Method
Namespace: Riptide.Utils
Assembly: RiptideNetworking.dll
Overloads
Initialize(LogMethod, bool, string) | Initializes RiptideLogger with all log types enabled. |
Initialize(LogMethod, LogMethod, LogMethod, LogMethod, bool, string) | Initializes RiptideLogger with the supplied log methods. |
Initialize(LogMethod, bool, string)
Initializes RiptideLogger with all log types enabled.
public static void Initialize(RiptideLogger.LogMethod logMethod, bool includeTimestamps, string timestampFormat = "HH:mm:ss")
Parameters
RiptideLogger.LogMethod | logMethod |
The method to use when logging all types of messages. |
bool | includeTimestamps |
Whether or not to include timestamps when logging messages. |
string | timestampFormat |
The format to use for timestamps. |
Initialize(LogMethod, LogMethod, LogMethod, LogMethod, bool, string)
Initializes RiptideLogger with the supplied log methods.
public static void Initialize(RiptideLogger.LogMethod debugMethod, RiptideLogger.LogMethod infoMethod, RiptideLogger.LogMethod warningMethod, RiptideLogger.LogMethod errorMethod, bool includeTimestamps, string timestampFormat = "HH:mm:ss")
Parameters
RiptideLogger.LogMethod | debugMethod |
The method to use when logging debug messages. Set to null to disable debug logs. |
RiptideLogger.LogMethod | infoMethod |
The method to use when logging info messages. Set to null to disable info logs. |
RiptideLogger.LogMethod | warningMethod |
The method to use when logging warning messages. Set to null to disable warning logs. |
RiptideLogger.LogMethod | errorMethod |
The method to use when logging error messages. Set to null to disable error logs. |
bool | includeTimestamps |
Whether or not to include timestamps when logging messages. |
string | timestampFormat |
The format to use for timestamps. |