ttcn3_logformat(1)
π ttcn3_logformat β the TTCN-3 log file formatter utility β¨
okay bestie, gather round, because this is the glow-up your ugly raw logs have been begging for π
This is the quick reference for the TTCN-3 logformat utility of the TTCN-3 Test Executor, and it lives in $TTCN3_DIR/bin (we'll get to that env var, don't worry π«Ά).
πΈ SYNOPSIS πΈ
ttcn3_logformat [ -i n ] [ -o outfile ] [ -s ] [ file.log ] [ -n ]
or, when you just wanna know who she is:
ttcn3_logformat -v
β¨ DESCRIPTION β¨
So ttcn3_logformat reads the unformatted log file that the test executor produces, and it reads it from standard input. That's the vibe. π§
What she does for you, bestie:
- she can split the log into several files, based on the lines that get automatically logged at the beginning or end of each test case π
- she formats the sent and received messages in the log file π¨
- she indents structured values and puts each field on a new line, following the braces and commas π
it's giving β¨ organized β¨ and honestly the difference is night and day, no cap.
π OPTIONS π
available command line switches, let's go:
-i nβ sets the depth of each indentation level toncharacters. the default is4. if the sent or received PDU is too complex and has fields nested way too deep, you can decrease this number to get more readable output π₯-o outfileβ puts the output into the fileoutfile. and if the-sflag is also set, only those parts of the log files get written into this file that were logged outside the test cases (i.e. in the control part or on PTCs). if you skip this option entirely, the formatted log just gets printed to standard output π-sβ if this is set, the entries recorded during the execution of a particular test case get saved in a separate file in thettcn3_logformatworking directory. the name of that file is identical to the name of the test case. if the same test case is executed several times one after another, the results of the repeated test runs get collected after each other. but heads up π β if the output file already contained some data beforettcn3_logformatwas started (like the results of a previous test run), the output file will be emptied and the old logs will be destroyed π
ttcn3_logformat recognizes any types of timestamps that can be set in the [LOGGING] section of the configuration file β°
WARNING! π¨ this option is useless when formatting the log files of PTCs, because these logs do not contain the name of the testcase that the PTC belongs to. sorry bestie, that's just how it is π
-nβ if this option is set, newline and tab characters are not modified β they're printed as\nand\tπ-vβ prints version and license key information and exits. short queen behavior, we respect it π
πΌ ENVIRONMENT VARIABLES πΌ
TTCN3_DIRβ the installation directory where the uncompressed binary package of TTCN-3 Test Executor can be found. πTTCN3_LICENSE_FILEβ it shall point to the file (NB: not to its directory, bestie, read it again π’) that contains the personalized license key for the current user or host. π
π BUGS π
None known at this time π¦ (we love a flawless icon, periodt).
For trouble reporting use the tool MTTSMS.
For TR writers guide please visit the web page: http://ttcn.ericsson.se.
π«Ά SEE ALSO π«Ά
The User Documentation for the TTCN-3 Test Executor π
π AUTHOR π
This manpage is written by Csaba Koppany, Ericsson Telecom AB.
Copyright (c) 2000-2021 Ericsson Telecom AB. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
and that's the whole page, bestie π this one's from Ericsson Telecom AB, dated January 2021, living in the TTCN-3 Tools collection β go forth and make your logs pretty, iykyk πΈβ¨
π¦ where this page comes from
- debian bookworm: eclipse-titan 8.2.0-1 Β· EPL-2.0
- ubuntu jammy: eclipse-titan 8.1.1-1 Β· EPL-1.0
- ubuntu noble: eclipse-titan 8.2.0-1build2 Β· EPL-2.0
- ubuntu stonking: eclipse-titan 8.2.0-1.1 Β· EPL-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms