Rename LoggingService to EventLoggingService
Renamed to differentiate between upcoming UserLoggingService.
This commit is contained in:
parent
ffa5b5754b
commit
6b83735d6b
3 changed files with 6 additions and 6 deletions
|
@ -56,7 +56,7 @@ namespace Kerobot
|
|||
var svcList = new List<Service>();
|
||||
|
||||
// Put services here as they become usable.
|
||||
_svcLogging = new Services.Logging.LoggingService(this);
|
||||
_svcLogging = new Services.EventLogging.EventLoggingService(this);
|
||||
svcList.Add(_svcLogging);
|
||||
_svcGuildState = new Services.GuildState.GuildStateService(this);
|
||||
svcList.Add(_svcGuildState);
|
||||
|
|
|
@ -3,7 +3,7 @@ using System.Threading.Tasks;
|
|||
using Discord;
|
||||
using NpgsqlTypes;
|
||||
|
||||
namespace Kerobot.Services.Logging
|
||||
namespace Kerobot.Services.EventLogging
|
||||
{
|
||||
/// <summary>
|
||||
/// Implements logging. Logging is distinguished into two types: Instance and per-guild.
|
||||
|
@ -11,12 +11,12 @@ namespace Kerobot.Services.Logging
|
|||
/// by moderators of a particular guild. All log messages are backed by database.
|
||||
/// Instance logs are stored as guild ID 0.
|
||||
/// </summary>
|
||||
class LoggingService : Service
|
||||
class EventLoggingService : Service
|
||||
{
|
||||
// Note: Service.Log's functionality is implemented here. Don't use it within this class.
|
||||
// If necessary, use DoInstanceLogAsync instead.
|
||||
|
||||
internal LoggingService(Kerobot kb) : base(kb)
|
||||
internal EventLoggingService(Kerobot kb) : base(kb)
|
||||
{
|
||||
// Create logging table
|
||||
CreateDatabaseTablesAsync().Wait();
|
|
@ -1,11 +1,11 @@
|
|||
using Kerobot.Services.Logging;
|
||||
using Kerobot.Services.EventLogging;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Kerobot
|
||||
{
|
||||
partial class Kerobot
|
||||
{
|
||||
LoggingService _svcLogging;
|
||||
EventLoggingService _svcLogging;
|
||||
|
||||
/// <summary>
|
||||
/// Appends a log message to the instance log.
|
Loading…
Reference in a new issue