blob: 07f3ea63518c3a84f2790c14d764a4e8cc16991e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ILog.cs" company="HandBrake Project (http://handbrake.fr)">
// This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License.
// </copyright>
// <summary>
// Defines the ILog type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace HandBrakeWPF.Services.Logging.Interfaces
{
using System;
using System.Collections.Generic;
using HandBrake.Worker.Logging.Models;
using LogEventArgs = HandBrakeWPF.Services.Logging.EventArgs.LogEventArgs;
using LogMessage = HandBrakeWPF.Services.Logging.Model.LogMessage;
/// <summary>
/// The Log interface.
/// </summary>
public interface ILog
{
/// <summary>
/// The message logged.
/// </summary>
event EventHandler<LogEventArgs> MessageLogged;
/// <summary>
/// The log reset event
/// </summary>
event EventHandler LogReset;
/// <summary>
/// Gets the log messages.
/// </summary>
IEnumerable<LogMessage> LogMessages { get; }
/// <summary>
/// Gets the activity log.
/// </summary>
string ActivityLog { get; }
/// <summary>
/// The reset.
/// </summary>
void Reset();
/// <summary>
/// Enable logging for this worker process.
/// </summary>
/// <param name="config">
/// Configuration for the logger.
/// </param>
/// <remarks>
/// If this is not called, all log messages from libhb will be ignored.
/// </remarks>
void ConfigureLogging(LogHandlerConfig config);
/// <summary>
/// Log a message.
/// </summary>
/// <param name="content">
/// The content of the log message,
/// </param>
void LogMessage(string content);
}
}
|