コード例 #1
0
        private static void WriteLog(BootstrapType type, string format)
        {
            if (_logger == null)
            {
                return;
            }

            switch (type)
            {
            case BootstrapType.Success:
                _logger.Pass(format);
                break;

            case BootstrapType.Info:
                _logger.Info(format);
                break;

            case BootstrapType.Warning:
                _logger.Warn(format);
                break;

            case BootstrapType.Danger:
                _logger.Fatal(format);
                break;

            case BootstrapType.Magenta:
                _logger.Magenta(format);
                break;

            case BootstrapType.Cobalt:
                _logger.Cobalt(format);
                break;

            case BootstrapType.Default:
            default:
                _logger.Debug(format);
                break;
            }
        }