def test_logfile
assert_equal(1, @logging_params_call)
@Logging.call_index = 0
assert_equal('server.log', @Logging.logfile_path)
assert_equal(1, @logfiles_call)
assert_equal('notice', @Logging.logfile_logging_level)
assert_equal(2, @logfiles_call)
@Logging.call_index = 1
assert_equal('access.log', @Logging.logfile_path)
assert_equal(3, @logfiles_call)
assert_equal('info', @Logging.logfile_logging_level)
assert_equal(4, @logfiles_call)
@Logging.call_index = 2
assert_equal('debug.log', @Logging.logfile_path)
assert_equal(5, @logfiles_call)
assert_equal('debug', @Logging.logfile_logging_level)
assert_equal(6, @logfiles_call)
@Logging.call_index = 1
@Logging.logfile_path = 'error.log'
assert_equal(7, @logfiles_call)
assert_equal('error.log', @Logging.logfile_path)
assert_equal(8, @logfiles_call)
@Logging.logfile_logging_level = 'err'
assert_equal(9, @logfiles_call)
assert_equal('err', @Logging.logfile_logging_level)
assert_equal(10, @logfiles_call)
@Logging.write_logging_parameter
assert_equal(1, @set_logging_params_call)
assert_equal(3, @store['logfiles'].length)
assert_equal('server.log', @store['logfiles'][0]['path'])
assert_equal('notice', @store['logfiles'][0]['logging_level'])
assert_equal('error.log', @store['logfiles'][1]['path'])
assert_equal('err', @store['logfiles'][1]['logging_level'])
assert_equal('debug.log', @store['logfiles'][2]['path'])
assert_equal('debug', @store['logfiles'][2]['logging_level'])
end