* @return アクセス権があればtrue
*/
public static boolean hasLoggingPermission(){
+ /* for JDK17 or later
SecurityManager manager = System.getSecurityManager();
boolean result = hasLoggingPermission(manager);
return result;
+ */
+ return true;
}
- /**
+ /* * for JDK17 or later
* ログ操作のアクセス権があるか否か判定する。
*
* @param manager セキュリティマネージャ
* @return アクセス権があればtrue
- */
+ * /
public static boolean hasLoggingPermission(SecurityManager manager){
if(manager == null) return true;
return true;
}
+ */
/**
* ルートロガーを返す。