示例#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());
        }
示例#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());
        }