Your code looking fine.
Please check below link it will help.
Thanks for your reply Dilip
But the above solutions didnt worked in my case. The problem here is things are working fine when FND Diagnostics got enabled,but it fails when FND Diagnostics set to NO.
Kindly suggest us is there any chance by enabling the log file directory.
Thansks and Regards,