java - How to Write exceptions into Log file...? -


I have used Spring MVC ...

After sending the Sender Servlet, I'm getting the exception file in the log file ...

I'm getting the error ... TCP / IP connection for Host 192.168.100.178, Port 1433 has failed. Error: "Connection timed out.Verify connection properties.Make sure that an instance of SQL Server on host is running and accepting TCP / IP connection on port.Make sure that the port in the TCP connection firewall I can not write in the log file ...

Can anyone help? Thank you

You can create your own custom exception, after catching all TCP / IP connection exceptions Is thrown away. Once your custom exception is thrown, you can just type the log in the file you specify.


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -