nodetool setlogginglevel — 로그 레벨 임계값 설정

nodetool setlogginglevel — 로그 레벨 임계값 설정

이 명식은 주어진 클래스 또는 패키지의 로그 레벨 임계값을 설정해요. 특정 컴포넌트에 대한 상세 로그를 임시로 켜서(예: TRACE/DEBUG) 문제를 진단한 뒤 다시 낮추는 방식으로 활용합니다. getlogginglevels로 현재 값을 확인할 수 있어요.

출처: nodetool setlogginglevel — 로그 레벨 임계값 설정

본문

실제 사용 구문은 아래와 같아요. 옵션 설명은 명령의 도움말(usage)을 그대로 옮긴 것이니, 실행 환경에 맞춰 필요한 옵션만 골라 사용하면 됩니다.

NAME
        nodetool setlogginglevel - Set the log level threshold for a given
        component or class. Will reset to the initial configuration if called
        with no parameters.

SYNOPSIS
        nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
                [(-pp | --print-port)] [(-pw <password> | --password <password>)]
                [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
                [(-u <username> | --username <username>)] setlogginglevel [--]
                <component|class> <level>

OPTIONS
        -h <host>, --host <host>
            Node hostname or ip address

        -p <port>, --port <port>
            Remote jmx agent port number

        -pp, --print-port
            Operate in 4.0 mode with hosts disambiguated by port number

        -pw <password>, --password <password>
            Remote jmx agent password

        -pwf <passwordFilePath>, --password-file <passwordFilePath>
            Path to the JMX password file

        -u <username>, --username <username>
            Remote jmx agent username

        --
            This option can be used to separate command-line options from the
            list of argument, (useful when arguments might be mistaken for
            command-line options

        <component|class> <level>
            The component or class to change the level for and the log level
            threshold to set. Will reset to initial level if omitted. Available
            components: bootstrap, compaction, repair, streaming, cql, ring

더 알아보기 (Learn more)