You can create DDL trigger as
CREATE TRIGGER ddlTrigger
ON ALL SERVER
FOR DDL_LOGIN_EVENTS
AS
.....
..
…
.
You can use EVENTDATA() function that returns info such as event time, SPID, and type of event firing the trigger in form of XML data.
DBDigger Microsoft Data Platform Consultancy.