Hi there,
i am commenting this issue - hope it is okay to track it here:
Let's say i run something like:
sh ./utPLSQL-cli/bin/utplsql run -c -q schema-tst/super-secure-pwd@tns-string
Can i hide the password at least from the DEBUG output?
In version 3.1.9 i always get the password printed like:
14:37:26.505 [main] DEBUG org.utplsql.cli.Cli - Args: run, -c, -q, schema-tst/super-secure-pwd@tns-string
EDIT 7-AUG-2023: It is possible by placing a logback.xml file in the lib folder with the following content:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="info">
<appender-ref ref="STDOUT" />
</root>
</configuration>
Reading a bit about Logback it says that Logback scans the classpath for such an .xml. In my case i had to create a ./etc directory:
>tree -D
[Aug 7 20:43] .
├── [Aug 7 20:43] bin
│ ├── [Aug 7 20:42] utplsql
│ └── [Jun 13 2022] utplsql.bat
├── [Aug 7 20:43] etc
│ └── [Aug 7 20:39] logback.xml
└── [Aug 7 20:42] lib
├── [Jun 13 2022] cli-3.1.9.jar
├── [Jun 13 2022] java-api-3.1.9.jar
├── [Jun 13 2022] javax.activation-api-1.2.0.jar
├── [Jun 13 2022] jaxb-api-2.3.1.jar
├── [Jun 13 2022] jsr305-3.0.2.jar
├── [Jun 13 2022] logback-classic-1.2.11.jar
├── [Jun 13 2022] logback-core-1.2.11.jar
├── [Jun 13 2022] ojdbc8-19.3.0.0.jar
├── [Jun 13 2022] ons-19.3.0.0.jar
├── [Jun 13 2022] oraclepki-19.3.0.0.jar
├── [Jun 13 2022] orai18n-19.3.0.0.jar
├── [Jun 13 2022] osdt_cert-19.3.0.0.jar
├── [Jun 13 2022] osdt_core-19.3.0.0.jar
├── [Jun 13 2022] picocli-4.6.3.jar
├── [Jun 13 2022] simplefan-19.3.0.0.jar
└── [Jun 13 2022] slf4j-api-1.7.36.jar
I did find my classpath by adding an echo $CLASSPATH in ./bin/utplsql
imho it still makes sense to change the logging level in the code to TRACE