Logger Factory
public interface IRabbitLoggerFactory
{
IRabbitLogger Create(GameObject gameObject, string name, string path = "", ILoggerConfig config = null);
IRabbitLogger Create<T>(GameObject gameObject, string path = "", ILoggerConfig config = null);
IRabbitLogger Create<T>(string name = null, string path = null, ILoggerConfig config = null)
where T : class;
IRabbitLogger Create<T>(T instance, string name = null, string path = null, ILoggerConfig config = null)
where T : class;
}Creating a logger
// Create a new logger using the factory.
var logger = LoggerFactory.Create(this);
// Acces the logger through the factory.
var logger = LogManager.Instance.Factory.Create(this);IDisposable
Logger Factory Behaviour
Injection
Factory
Last updated