From 1c97ceb2c58353095ab87d80e5a5f42f0b87e19c Mon Sep 17 00:00:00 2001 From: Peter Andersson Date: Wed, 14 Sep 2016 23:29:27 +0200 Subject: Document functions for modifying and reading verbosity levels --- lib/common_test/doc/src/ct.xml | 30 ++++++++++++++++++++++++++ lib/common_test/doc/src/write_test_chapter.xml | 4 ++++ 2 files changed, 34 insertions(+) (limited to 'lib/common_test') diff --git a/lib/common_test/doc/src/ct.xml b/lib/common_test/doc/src/ct.xml index ffc64cba67..53ef41dd5b 100644 --- a/lib/common_test/doc/src/ct.xml +++ b/lib/common_test/doc/src/ct.xml @@ -619,6 +619,21 @@ + + get_verbosity(Category) -> Level | undefined + Read the verbosity level for a logging category. + + Category = default | atom() + Level = integer() + + +

This function returns the verbosity level for the specified logging + category. See the + User's Guide for details. Use the value default to read + the general verbosity level.

+
+
+ install(Opts) -> ok | {error, Reason} Installs configuration files and event handlers. @@ -1224,6 +1239,21 @@ + + set_verbosity(Category, Level) -> ok + Set the verbosity level for a logging category. + + Category = default | atom() + Level = integer() + + +

Use this function to set, or modify, the verbosity level for a logging + category. See the + User's Guide for details. Use the value default to set the + general verbosity level.

+
+
+ sleep(Time) -> ok This function, similar to timer:sleep/1, suspends the diff --git a/lib/common_test/doc/src/write_test_chapter.xml b/lib/common_test/doc/src/write_test_chapter.xml index 7bd2ccf588..1d3fbb6f76 100644 --- a/lib/common_test/doc/src/write_test_chapter.xml +++ b/lib/common_test/doc/src/write_test_chapter.xml @@ -1031,6 +1031,10 @@ 4. Categorized info, importance = 25 6. Categorized error, importance = 99 +

The functions ct:set_verbosity/2 + and ct:get_verbosity/1 may be used + to modify and read verbosity levels during test execution.

+

The arguments Format and FormatArgs in ct:log/print/pal are always passed on to the STDLIB function io:format/3 (For details, see the io manual page).

-- cgit v1.2.3