はじめに
本ドキュメントは、EPNM Serverで出力されている特定のログのDEBUG有効化の設定方法について
説明しております。
EPNM CLIにログイン
まずEPNM Serverへsshログインし、shellコマンドを実行後パスワードを入力しshellモードへログインします。
EPNM/admin# shell
Enter shell access password :
Starting bash shell ...
ade #
DEBUGの有効化について
DEBUGを有効化したいLoggerNameを指定して、下記のコマンドからDEBUGを有効化となります。
例) 下記の例ではrestconf に対してDEBUGを有効化しております。
ade # sudo /opt/CSCOlumos/bin/setLogLevel.sh restconf DEBUG
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/opt/CSCOlumos/lib/xmp-third-party/spring-core-4.3.29.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Loglevel set to DEBUG for com.cisco.nms.nbi.service.test.restconf.resource.root.RestconfServiceTestExtRootResource
元のLevelに戻す方法について
DEBUGを有効化すると、大量にログが出力されるため、元のLevelに戻すには有効化したLogger Nameを指定し
INFOレベルへと変更することで元のLevelに変更することが可能です。
例)下記の例では、restconfをINFOレベルへと変更しております。
ade # sudo /opt/CSCOlumos/bin/setLogLevel.sh restconf INFO
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (file:/opt/CSCOlumos/lib/xmp-third-party/spring-core-4.3.29.RELEASE.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Loglevel set to INFO for com.cisco.nms.nbi.service.test.restconf.resource.root.RestconfServiceTestExtRootResource
参考情報
無し