コード例 #1
0
ファイル: TextFilePlugin.cs プロジェクト: vvilelaj/logger
        public TextFilePlugin(IConfigManager configManager)
        {
            ParameterValidator.ThowExceptionWhenIsNull(configManager, "configManager", "TextFilePlugin");

            this.configManager = configManager;

            fsParams = LoadFsParamsFromConfig();
        }
コード例 #2
0
ファイル: TextFilePlugin.cs プロジェクト: vvilelaj/logger
        public TextFilePlugin(FsParams fsParams)
        {
            ParameterValidator.ThowExceptionWhenIsNull(fsParams, "fsParams", "TextFilePlugin");

            ParameterValidator.ThowExceptionWhenIsNullOrEmpty(fsParams.LogPath, "fsParams.LogPath", "TextFilePlugin");

            ParameterValidator.ThowExceptionWhenIsNullOrEmpty(fsParams.LogName, "fsParams.LogName", "TextFilePlugin");

            ParameterValidator.ThowExceptionWhenIsNullOrEmpty(fsParams.LogExtension, "fsParams.LogExtension", "TextFilePlugin");

            this.fsParams = fsParams;
        }