Timothy Schenk
dc6d8316e9
All checks were successful
Build, Package and Push Images / preprocess (push) Successful in 1s
Build, Package and Push Images / build (push) Successful in 26s
Build, Package and Push Images / sbom-scan (push) Successful in 39s
Build, Package and Push Images / sonarqube (push) Successful in 1m21s
Build, Package and Push Images / container-build (push) Successful in 1m30s
Build, Package and Push Images / container-sbom-scan (push) Successful in 37s
ci: branch name sanitization for docker ci: another attempt ci: forgot actor chore: remove nuke remnants chore(deps): update dependency dotnet-sdk to v7.0.403 Signed-off-by: noreply@rainote.dev refactor: shared data into library refactor: rewrite for packethandler/id map chore: logging chore: Sonar Warnings chore: upgrade to .net8 image chore: fetch all required information for characters chore: upgrade to .net 8 ci: install .net 7.0 alongside 8.0 for sbom fix: incorrect job ci: let's try arm64 again ci: adjust project for .net 8 support chore: adjustments to composefile chore: analyzer setup chore: analyzer and project settings updated
49 lines
2.4 KiB
C#
49 lines
2.4 KiB
C#
using JetBrains.Annotations;
|
|
using Microsoft.Extensions.Logging;
|
|
using Wonderking.Packets;
|
|
|
|
namespace Server.LoggerMessages;
|
|
|
|
public static partial class PacketLoggerMessages
|
|
{
|
|
[LoggerMessage(EventId = 0, Level = LogLevel.Information,
|
|
Message = "Packet creation function created for {PacketID}")]
|
|
public static partial void PacketCreationFunctionCreated(this ILogger logger, OperationCode packetId);
|
|
|
|
[LoggerMessage(EventId = 1, Level = LogLevel.Trace,
|
|
Message = "Packet with ID: {PacketID} has been added as {PacketName}")]
|
|
public static partial void PacketWithIdAdded(this ILogger logger, OperationCode packetId, string packetName);
|
|
|
|
[LoggerMessage(EventId = 2, Level = LogLevel.Trace,
|
|
Message = "PacketHandler with ID: {PacketID} has been added as {PacketName}")]
|
|
public static partial void PacketHandlerWithIdAdded(this ILogger logger, OperationCode packetId,
|
|
[CanBeNull] string packetName);
|
|
|
|
[LoggerMessage(EventId = 3, Level = LogLevel.Information,
|
|
Message = "Packet with ID: {PacketID} has been received")]
|
|
public static partial void PacketReceived(this ILogger logger, OperationCode packetId);
|
|
|
|
[LoggerMessage(EventId = 4, Level = LogLevel.Trace,
|
|
Message = "[{SessionID}] Packet with ID: {PacketID} is being dequeued")]
|
|
public static partial void PacketDequeued(this ILogger logger, Guid sessionId, OperationCode packetId);
|
|
|
|
[LoggerMessage(EventId = 5, Level = LogLevel.Information,
|
|
Message = "Couldn't find Packet type for Id: {PacketID}")]
|
|
public static partial void PacketTypeNotFound(this ILogger logger, OperationCode packetId);
|
|
|
|
[LoggerMessage(EventId = 6, Level = LogLevel.Trace,
|
|
Message = "[{SessionID}] Packet with ID: {PacketID} has finished")]
|
|
public static partial void PacketFinished(this ILogger logger, Guid sessionId, OperationCode packetId);
|
|
|
|
[LoggerMessage(EventId = 7, Level = LogLevel.Critical,
|
|
Message = "No PacketHandlers have been found")]
|
|
public static partial void NoPacketHandlersFound(this ILogger logger);
|
|
|
|
[LoggerMessage(EventId = 8, Level = LogLevel.Information,
|
|
Message = "Packet data {PacketData}")]
|
|
public static partial void PacketData(this ILogger logger, string packetData);
|
|
|
|
[LoggerMessage(EventId = 9, Level = LogLevel.Critical,
|
|
Message = "No Packets have been found")]
|
|
public static partial void NoPacketsFound(this ILogger logger);
|
|
}
|