コード例 #1
0
        public void SimpleZLog()
        {
            var provider = new ZLoggerUnityLoggerProvider(Options.Create(new ZLoggerOptions()));
            var logger   = provider.CreateLogger("mylogger1");

            logger.ZLogDebug("foo");
        }
コード例 #2
0
        public void SimpleZLogFormat()
        {
            var provider = new ZLoggerUnityLoggerProvider(Options.Create(new ZLoggerOptions()));
            var logger   = provider.CreateLogger("mylogger2");

            logger.ZLogDebug("foo{0} bar{1}", 100, 200);
        }
コード例 #3
0
        public void SimpleLogging()
        {
            var provider = new ZLoggerUnityLoggerProvider(Options.Create(new ZLoggerOptions()));
            var logger   = provider.CreateLogger("mylogger");

            logger.Log(LogLevel.Debug, "foo");
        }