2021-10-27 00:42:17 +00:00
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-10-28 01:20:14 +00:00
|
|
|
|
using MediaBrowser.Controller.Net;
|
2021-10-27 00:42:17 +00:00
|
|
|
|
using MediaBrowser.Model.ClientLog;
|
2021-04-26 13:02:26 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.ClientEvent
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The client event logger.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IClientEventLogger
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Logs the event from the client.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="clientLogEvent">The client log event.</param>
|
|
|
|
|
void Log(ClientLogEvent clientLogEvent);
|
2021-10-27 00:42:17 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Writes a file to the log directory.
|
|
|
|
|
/// </summary>
|
2021-10-28 01:20:14 +00:00
|
|
|
|
/// <param name="authorizationInfo">The current authorization info.</param>
|
|
|
|
|
/// <param name="fileContents">The file contents to write.</param>
|
2021-10-28 22:11:14 +00:00
|
|
|
|
/// <returns>The created file name.</returns>
|
|
|
|
|
Task<string> WriteDocumentAsync(AuthorizationInfo authorizationInfo, Stream fileContents);
|
2021-04-26 13:02:26 +00:00
|
|
|
|
}
|
2021-10-27 00:42:17 +00:00
|
|
|
|
}
|