2023-01-04 14:15:45 -08:00
|
|
|
|
using Ryujinx.Horizon.Common;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Lm;
|
|
|
|
|
using Ryujinx.Horizon.Sdk.Sf;
|
|
|
|
|
|
2023-01-08 04:13:39 -08:00
|
|
|
|
namespace Ryujinx.Horizon.LogManager.Ipc
|
2023-01-04 14:15:45 -08:00
|
|
|
|
{
|
2023-01-08 04:13:39 -08:00
|
|
|
|
partial class LogService : ILogService
|
2023-01-04 14:15:45 -08:00
|
|
|
|
{
|
|
|
|
|
public LogDestination LogDestination { get; set; } = LogDestination.TargetManager;
|
|
|
|
|
|
|
|
|
|
[CmifCommand(0)]
|
2023-01-08 04:13:39 -08:00
|
|
|
|
public Result OpenLogger(out LmLogger logger, [ClientProcessId] ulong pid)
|
2023-01-04 14:15:45 -08:00
|
|
|
|
{
|
2023-01-08 04:13:39 -08:00
|
|
|
|
// NOTE: Internal name is Logger, but we rename it LmLogger to avoid name clash with Ryujinx.Common.Logging logger.
|
|
|
|
|
logger = new LmLogger(this, pid);
|
2023-01-04 14:15:45 -08:00
|
|
|
|
|
|
|
|
|
return Result.Success;
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-08 04:13:39 -08:00
|
|
|
|
}
|