RegexBot/Kerobot/Services/EventLogging/Kerobot_hooks.cs
Noikoio 6b83735d6b Rename LoggingService to EventLoggingService
Renamed to differentiate between upcoming UserLoggingService.
2019-06-22 17:12:05 -07:00

28 lines
1.3 KiB
C#

using Kerobot.Services.EventLogging;
using System.Threading.Tasks;
namespace Kerobot
{
partial class Kerobot
{
EventLoggingService _svcLogging;
/// <summary>
/// Appends a log message to the instance log.
/// </summary>
/// <param name="report">Specifies if the message should be sent to the dedicated logging channel on Discord.</param>
/// <param name="source">Name of the subsystem from which the log message originated.</param>
/// <param name="message">The log message to append. Multi-line messages are acceptable.</param>
public Task InstanceLogAsync(bool report, string source, string message)
=> _svcLogging.DoInstanceLogAsync(report, source, message);
/// <summary>
/// Appends a log message to the guild-specific log.
/// </summary>
/// <param name="guild">The guild ID associated with this message.</param>
/// <param name="source">Name of the subsystem from which the log message originated.</param>
/// <param name="message">The log message to append. Multi-line messages are acceptable.</param>
public Task GuildLogAsync(ulong guild, string source, string message)
=> _svcLogging.DoGuildLogAsync(guild, source, message);
}
}