File size: 427 Bytes
b204a18
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using Serilog;

namespace AiDevProject.Utils;

/// <summary>
/// Logging helpers.
/// </summary>
public static class LoggerExtensions
{
    public static ILogger ForContext<T>(this ILogger logger)
    {
        return logger.ForContext<T>();
    }

    public static void LogAppStartup(this ILogger logger, string appName, int port)
    {
        logger.Information("Starting {AppName} on port {Port}", appName, port);
    }
}