libosmocore/tests/logging
Neels Hofmeyr d0b3b9edac add vty logp command to echo on all log targets
When reading SUT logs resulting from TTCN3 runs, it can be hard to figure out
which log section corresponds to which test code. Add a 'logp' command on VIEW
and ENABLE nodes that simply echos an arbitrary message on log output, useful
to set markers / explanations from the TTCN3 code, which then appear in all log
outputs and can make it trivial to figure out which log section is interesting.

	logging_vty_test# logp lglobal notice This is the log message
	DLGLOBAL NOTICE This is the log message

From TTCN3, could be used like this, e.g. in BSC_Tests.ttcn:

	private function f_logp(charstring log_msg) runs on MSC_ConnHdlr
	{
		// log on TTCN3 log output
	        log(log_msg);
		// log in stderr log
	        f_vty_transceive(BSCVTY, "logp lglobal notice " & log_msg);
	}

	...

	f_logp("f_probe_for_handover(" & log_label & "): Ending the test: Handover Failure stops the procedure.");

Change-Id: Ife5dc8999174c74e0d133729284fe526d6eaf8d9
2019-08-13 15:35:02 +02:00
..
logging_test.c license: Fix the license to GPL 2017-12-09 13:03:29 +00:00
logging_test.err fix logging: log_set_category_filter() for internal DL* logging cats 2016-12-12 16:56:54 +01:00
logging_test.ok logging: Move the logging test from OpenBSC into libosmocore 2012-09-27 16:29:54 +02:00
logging_vty_test.c tests: logging: Remove undefined param passed to logging_vty_add_cmds 2019-08-05 14:10:45 +02:00
logging_vty_test.vty add vty logp command to echo on all log targets 2019-08-13 15:35:02 +02:00