public void Log <T>(T entity, string message) where T : IEntity
        {
            IFileWriter fileWriter = fileWriterFactory.GetNewWriter("LogFile");

            fileWriter.WriteLine($"Name: {entity.Name} | Message: {message}");
        }
        public void Log <T>(T entity, string message) where T : IEntity
        {
            IFileWriter fileWriter = fileWriterFactory.GetNewWriter($"{typeof(T).Name}AuditLog.txt");

            fileWriter.WriteLine($"Name: {entity.Name} | Message: {message}");
        }
Ejemplo n.º 3
0
        public void Log(Person p, string message)
        {
            IFileWriter fileWriter = fileWriterFactory.GetNewWriter("LogFile");

            fileWriter.WriteLine($"Person: {p.Name} | Message: {message}");
        }