How to log application auditing to separate file on Wildfly 8

后端 未结 1 1432
说谎
说谎 2020-12-18 03:11

I have a Java EE application running on Wildfly 8 in which I want to enable audit logging. Using an InterceptorBinding and Interceptor I am able to catch all relevant API ca

1条回答
  •  既然无缘
    2020-12-18 04:11

    I finally managed to achieve what I wanted by modifying the standalone.xml file in Wildfly. I added a custom file-handler and logger that uses this file-handler. No need for a custom logback implementation or anything like that.

        
            
                
                
                    
                
            
            
                
                    
                
                
                
                
            
            
                
                    
                
                
                
                
            
            
                
                
                    
                
            
            
                
            
            
                
            
            
                
            
            
                
            
            
                
            
            
                
            
            
                
            
            
                
                
                    
                    
                
            
            
                
            
            
                
            
        
    

    0 讨论(0)
提交回复
热议问题