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