mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Merge pull request #4720 from MrTimscampi/activity-log-levels
Add overloaded constructor for ActivityLog levels
This commit is contained in:
commit
d0ccea934f
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,8 @@ namespace Jellyfin.Data.Entities
|
||||||
/// <param name="name">The name.</param>
|
/// <param name="name">The name.</param>
|
||||||
/// <param name="type">The type.</param>
|
/// <param name="type">The type.</param>
|
||||||
/// <param name="userId">The user id.</param>
|
/// <param name="userId">The user id.</param>
|
||||||
public ActivityLog(string name, string type, Guid userId)
|
/// <param name="logLevel">The log level.</param>
|
||||||
|
public ActivityLog(string name, string type, Guid userId, LogLevel logLevel = LogLevel.Information)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(name))
|
if (string.IsNullOrEmpty(name))
|
||||||
{
|
{
|
||||||
|
@ -34,7 +35,7 @@ namespace Jellyfin.Data.Entities
|
||||||
Type = type;
|
Type = type;
|
||||||
UserId = userId;
|
UserId = userId;
|
||||||
DateCreated = DateTime.UtcNow;
|
DateCreated = DateTime.UtcNow;
|
||||||
LogSeverity = LogLevel.Trace;
|
LogSeverity = logLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue