Ejemplo n.º 1
0
        private void LogErrorMessage(string message = "Error", [CallerLineNumber] int lineNumber = 0)
        {
            string warning = $"Line {lineNumber}: {message}";

            Logger.LogError(warning);
        }
Ejemplo n.º 2
0
 private void LogInfoMessage(string message)
 {
     Logger.LogInfo(message);
 }
Ejemplo n.º 3
0
        private void LogWarningMessage(string message = "Debug", [CallerLineNumber] int lineNumber = 0)
        {
            string warning = $"Line {lineNumber}: {message}";

            Logger.LogWarning(warning);
        }
Ejemplo n.º 4
0
 protected virtual ResponseType FunctionToRun(NetworkUser networkUser, RequestType request)
 {
     Logger.LogError($"No function supplied by child class of Command for request type: {request.GetType().Name}");
     return((ResponseType)Activator.CreateInstance(typeof(RpcResult), false, $"No function supplied child class of Command for request type: {nameof(RequestType)} response type {nameof(ResponseType)}", LogSeverity.Error));
 }