コード例 #1
0
        public bool StartLogging(string filename)
        {
            int major, minor, bugfix;

            Graphite2Api.EngineVersion(out major, out minor, out bugfix);

            if (major <= 1 && minor < 2)
            {
                throw new NotSupportedException("A newer graphite engine is needed to support logging");
            }

            return(Graphite2Api.StartLogging(_face, filename));
        }