log4j support in Android

后端 未结 6 1313
無奈伤痛
無奈伤痛 2020-11-27 04:57

I am attempting to shoehorn an existing SDK onto an android device and one of the dependencies of said SDK is Apache log4j. I am able to load my test program onto the androi

6条回答
  •  情深已故
    2020-11-27 05:45

    I would recommend trying to swap in slf4j in place of log4j. It's not a painless switch but its likely to be easier than what you have. slf4j provides a common front-end for several loggers including log4j and there is an slf4j-android package.

    No, Android's logging mechanism is not decent. It's very inadequate compared to what log4j can do for you.

提交回复
热议问题