The dynamic code can be used to generate ALTER DATABASE script for configuring optimum size for Log file of any large database.
User has to provide database name and its log file size in order to configure the log file. Below are the lines to where these changes are required:-