xamarin-macios/tests/xharness/Logging/ILogs.cs

25 строки
859 B
C#

using System;
using System.Collections.Generic;
namespace Xharness.Logging {
public interface ILogs : IList<ILog>, IDisposable {
string Directory { get; set; }
// Create a new log backed with a file
ILogFile Create (string filename, string name, bool? timestamp = null);
// Adds an existing file to this collection of logs.
// If the file is not inside the log directory, then it's copied there.
// 'path' must be a full path to the file.
ILogFile AddFile (string path);
// Adds an existing file to this collection of logs.
// If the file is not inside the log directory, then it's copied there.
// 'path' must be a full path to the file.
ILogFile AddFile (string path, string name);
// Create an empty file in the log directory and return the full path to the file
string CreateFile (string path, string description);
}
}