Skip to content

Commit

Permalink
Move Loggers to Subscription.Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarcederberg committed Jul 24, 2021
1 parent 27fd74b commit 01a96f5
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Class/MainUI.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using tarot.Menu;
using tarot.Subscription;
using tarot.Subscription.Logging;

namespace tarot{
public class MainUI : IUserInterface{
Expand Down
2 changes: 1 addition & 1 deletion Class/Menu/IMenuEntry.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace tarot.Menu{
public interface IMenuEntry{
public string ToString();
public string GetText();
public void Select();
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace tarot.Subscription{
namespace tarot.Subscription.Logging{
abstract class AbstractLogger<T> : ILogger<T>{
protected List<Log> _logs;
protected AbstractLogger(Log log = null){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace tarot.Subscription{
namespace tarot.Subscription.Logging{
class ActionLogger : AbstractLogger<bool>{
private string _onSuccess;
private string _onFailure;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace tarot.Subscription{
namespace tarot.Subscription.Logging{
public interface ILogger<T> : ISubscriber<T>{
public void AddLog(Log log);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace tarot.Subscription{
namespace tarot.Subscription.Logging{
public class Log{
private List<LogEntry> _entries;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace tarot.Subscription{
namespace tarot.Subscription.Logging{
public class LogEntry{
public DateTime Time;
public string Message;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace tarot.Subscription{
namespace tarot.Subscription.Logging{
class ValueLogger<T> : AbstractLogger<T>{
private string _onRetrieval;
public ValueLogger(string _onRetrieval, Log log = null) : base(log){
Expand Down

0 comments on commit 01a96f5

Please sign in to comment.