/// <summary>
 ///     Detach the logger
 /// </summary>
 public void Detach()
 {
     if (!_guid.Equals(Guid.Empty))
     {
         SterlingFactory.GetLogger().UnhookLogger(_guid);
     }
 }
        /// <summary>
        ///     Create
        /// </summary>
        /// <param name="minimumLevel">Minimum level to debug</param>
        public SterlingDefaultLogger(SterlingLogLevel minimumLevel)
        {
            _minimumLevel = minimumLevel;

            if (Debugger.IsAttached)
            {
                _guid = SterlingFactory.GetLogger().RegisterLogger(_Log);
            }
        }
Exemplo n.º 3
0
 /// <summary>
 ///     Constructor takes in the database
 /// </summary>
 public SterlingEngine()
 {
     SterlingDatabase = SterlingFactory.GetDatabaseEngine();
 }