문제

I am working on a legacy software developed in swing and core java. I wanted to add a logging feature in the system where

  1. If something goes wrong in production system admin can enable logging without shutting down/restarting application.
  2. Admin will redo the steps to create logs.
  3. Once bug is reproduced admin can disable the logging and can upload logs to support site.

I am thinking of using AspectJ and I also wanted to collect logs only for a particular section of application.

Any help is highly appreciated.

Regards, -Deepak

도움이 되었습니까?

해결책

Yes, you can do this with AspectJ by adding a boolean switch to the system and evaluating it with if() pointcuts.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top