MCPcopy Create free account
hub / github.com/apache/trafficserver / display

Method display

src/proxy/logging/LogConfig.cc:343–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 -------------------------------------------------------------------------*/
342
343void
344LogConfig::display(FILE *fd)
345{
346 fprintf(fd, "-----------------------------\n");
347 fprintf(fd, "--- Logging Configuration ---\n");
348 fprintf(fd, "-----------------------------\n");
349 fprintf(fd, "Config variables:\n");
350 fprintf(fd, " log_buffer_size = %d\n", log_buffer_size);
351 fprintf(fd, " max_secs_per_buffer = %d\n", max_secs_per_buffer);
352 fprintf(fd, " max_space_mb_for_logs = %d\n", max_space_mb_for_logs);
353 fprintf(fd, " max_space_mb_headroom = %d\n", max_space_mb_headroom);
354 fprintf(fd, " hostname = %s\n", hostname);
355 fprintf(fd, " logfile_dir = %s\n", logfile_dir);
356 fprintf(fd, " logfile_perm = 0%o\n", logfile_perm);
357 fprintf(fd, " error_log_filename = %s\n", error_log_filename);
358
359 fprintf(fd, " preproc_threads = %d\n", preproc_threads);
360 fprintf(fd, " rolling_enabled = %d\n", rolling_enabled);
361 fprintf(fd, " rolling_interval_sec = %d\n", rolling_interval_sec);
362 fprintf(fd, " rolling_offset_hr = %d\n", rolling_offset_hr);
363 fprintf(fd, " rolling_size_mb = %d\n", rolling_size_mb);
364 fprintf(fd, " rolling_min_count = %d\n", rolling_min_count);
365 fprintf(fd, " rolling_max_count = %d\n", rolling_max_count);
366 fprintf(fd, " rolling_allow_empty = %d\n", rolling_allow_empty);
367 fprintf(fd, " auto_delete_rolled_files = %d\n", auto_delete_rolled_files);
368 fprintf(fd, " sampling_frequency = %d\n", sampling_frequency);
369 fprintf(fd, " file_stat_frequency = %d\n", file_stat_frequency);
370 fprintf(fd, " space_used_frequency = %d\n", space_used_frequency);
371 fprintf(fd, " logbuffer_max_iobuf_index = %d\n", logbuffer_max_iobuf_index);
372
373 fprintf(fd, "\n");
374 fprintf(fd, "************ Log Objects (%u objects) ************\n", log_object_manager.get_num_objects());
375 log_object_manager.display(fd);
376
377 fprintf(fd, "************ Filter List (%u filters) ************\n", filter_list.count());
378 filter_list.display(fd);
379
380 fprintf(fd, "************ Format List (%u formats) ************\n", format_list.count());
381 format_list.display(fd);
382}
383
384//-----------------------------------------------------------------------------
385// setup_log_objects

Callers 1

setup_log_objectsMethod · 0.45

Calls 2

get_num_objectsMethod · 0.80
countMethod · 0.45

Tested by

no test coverage detected