public override void ViewDidLoad() { base.ViewDidLoad(); // Perform any additional setup after loading the view, typically from a nib. // Initialize MetroLog using the defaults LogManagerFactory.DefaultConfiguration.AddTarget(LogLevel.Trace, LogLevel.Fatal, new StreamingFileTarget()); ILogManager logManager = LogManagerFactory.DefaultLogManager; // Inject the ILogManager manually SomeMagicClass c = new SomeMagicClass(logManager); c.DoMagic(); }