Cosmos/source/Cosmos.Build.Installer/Log.cs
kudzu_cp 0b123bc06e
2014-07-14 14:09:51 +00:00

35 lines
798 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Cosmos.Build.Installer {
public class Log {
public void WriteLine(string aText) {
if (LogLine != null) {
LogLine(aText);
}
}
public void NewSection(string aText) {
if (LogSection != null) {
LogSection(aText);
}
}
public void SetError() {
if (LogError != null) {
LogError();
}
}
public delegate void LogErrorHandler();
public event LogErrorHandler LogError;
public delegate void LogLineHandler(string aLine);
public event LogLineHandler LogLine;
public delegate void LogSectionHandler(string aLine);
public event LogSectionHandler LogSection;
}
}