Example #1
0
        /// <summary>
        /// Initializes the <see cref="Skahal.Logging.SHLog"/> class.
        /// </summary>
        static SHLog()
        {
            if (SHDebug.IsDebugBuild) {
                LogStrategy = new SHDebugLogStrategy ();
            } else {
                LogStrategy = new SHReleaseLogStrategy ();
            }

            Debug("SHLog: log strategy: {0}", LogStrategy.GetType());
        }
Example #2
0
        /// <summary>
        /// Initializes the <see cref="Skahal.Logging.SHLog"/> class.
        /// </summary>
        static SHLog()
        {
            if (SHDebug.IsDebugBuild)
            {
                LogStrategy = new SHDebugLogStrategy();
            }
            else
            {
                LogStrategy = new SHReleaseLogStrategy();
            }

            Debug("SHLog: log strategy: {0}", LogStrategy.GetType());
        }