1 // 2 // Copyright (c) 2010-2023 Antmicro 3 // Copyright (c) 2011-2015 Realtime Embedded 4 // 5 // This file is licensed under the MIT License. 6 // Full license text is available in 'licenses/MIT.txt'. 7 // 8 using System; 9 10 namespace Antmicro.Renode.Logging 11 { 12 public interface ILogger : IDisposable 13 { GetMachineName(int id)14 string GetMachineName(int id); GetObjectName(int id)15 string GetObjectName(int id); 16 Flush()17 void Flush(); 18 GetOrCreateSourceId(object source)19 int GetOrCreateSourceId(object source); TryGetName(int id, out string objectName, out string machineName)20 bool TryGetName(int id, out string objectName, out string machineName); TryGetSourceId(object source, out int id)21 bool TryGetSourceId(object source, out int id); 22 23 bool SynchronousLogging { get; set; } 24 } 25 } 26 27