2025-03-181. 방법 기본적으로 log4j2.xml에서 PatternLayout을 사용하여 로그의 색상을 지정할 수 있습니다. 하지만 일부 버전(특히 2.10.0 이상)에서는 ANSI 색상이 기본적으로 비활성화되어 있어, 설정이 적용되지 않고 단순한 흰색 텍스트만 출력되는 문제가 발생할 수 있습니다. PatternLayout에 disableAnsi="false" 옵션을 추가합니다.일부 버전에서는 disableAnsi 기본값이 true로 설정되어 있어 ANSI 색상이 적용되지 않습니다.따라서, disableAnsi="false"를 명시적으로 추가하면 색상이 정상적으로 표시됩니다.Log4j2 설정 파일 (log4j2.xml) 참고 ..
2024-02-07 1. pseudo-TTY 우선 pseudo-TTY를 알아야 하는데 이는 유저 또는 애플리케이션이 shell에 대한 권한을 얻기 위해 사용된다. pseudo-TTY는 master와 slave 두 개의 파일이 쌍을 이루어 구성되는데, master 파일은 OMVS 나 rlogin 같은 네트워크 애플리케이션에 사용되며, slave 은 터미널이나 쉘이 데이터를 읽기 위해 사용된다. 자세한 내용은 아래 참고 https://www.ibm.com/docs/en/zos/2.2.0?topic=files-pseudoterminal Pseudoterminal files Pseudoterminals (pseudo-TTYs) are used by users and applications to gain acce..
2024-01-29 1. 문제 깃허브 액션에서 docker 로그인 진행 중 아래와 같이 에러가 발생했다. 해당 경고는 Using STDIN prevents the password from ending up in the shell's history, or log-files. 때문에 발생한 것으로 해당 옵션(STDIN)을 주지 않으면 쉘에 기록이나 로그파일에 기록이 남을 수 있어 이에 대한 경고를 하는 것이다. WARNING! Using --password via the CLI is insecure. Use --password-stdin. 2. 해결방법 첫번째 방법은 echo로 패스워드를 출력하고 해당 정보를 파이프로 로그인 시 전달하는 방법이다. echo ${{ secrets.DOCKER_PASSWORD ..
2024-01-24 1. 방법 우분투 apt $ apt install procps 아마존 리눅스 yum $ yum install procps 설치후 top 커맨드 실행시 정상 동작한다. 2. 출처 https://superuser.com/questions/1646014/there-is-no-top-command-in-docker-container There is no top command in docker container I try to deploy an app in docker container using mcr.microsoft.com/dotnet/aspnet:5.0 image that need to have top command when I try to run top command the follo..