@@ -1912,6 +1912,16 @@ def check_percentage(option, opt_str, value, parser):
19121912 optparse .make_option ('--access-log-format' , metavar = 'FORMAT' ,
19131913 help = 'Specify the format of the access log records.' ),
19141914
1915+ optparse .make_option ('--error-log-name' , metavar = 'FILE-NAME' ,
1916+ default = 'error_log' , help = 'Specify the name of the error '
1917+ 'log file when it is being written to the log directory.' ),
1918+ optparse .make_option ('--access-log-name' , metavar = 'FILE-NAME' ,
1919+ default = 'access_log' , help = 'Specify the name of the access '
1920+ 'log file when it is being written to the log directory.' ),
1921+ optparse .make_option ('--startup-log-name' , metavar = 'FILE-NAME' ,
1922+ default = 'startup_log' , help = 'Specify the name of the startup '
1923+ 'log file when it is being written to the log directory.' ),
1924+
19151925 optparse .make_option ('--rotate-logs' , action = 'store_true' , default = False ,
19161926 help = 'Flag indicating whether log rotation should be performed.' ),
19171927 optparse .make_option ('--max-log-size' , default = 5 , type = 'int' ,
@@ -2215,7 +2225,7 @@ def _cmd_setup_server(command, args, options):
22152225
22162226 if not options ['log_to_terminal' ]:
22172227 options ['error_log_file' ] = os .path .join (options ['log_directory' ],
2218- 'error_log' )
2228+ options [ 'error_log_name' ] )
22192229 else :
22202230 try :
22212231 with open ('/dev/stderr' , 'w' ):
@@ -2228,7 +2238,7 @@ def _cmd_setup_server(command, args, options):
22282238
22292239 if not options ['log_to_terminal' ]:
22302240 options ['access_log_file' ] = os .path .join (
2231- options ['log_directory' ], 'access_log' )
2241+ options ['log_directory' ], options [ 'access_log_name' ] )
22322242 else :
22332243 try :
22342244 with open ('/dev/stdout' , 'w' ):
@@ -2456,7 +2466,7 @@ def _cmd_setup_server(command, args, options):
24562466 if options ['startup_log' ]:
24572467 if not options ['log_to_terminal' ]:
24582468 options ['startup_log_file' ] = os .path .join (
2459- options ['log_directory' ], 'startup_log' )
2469+ options ['log_directory' ], options [ 'startup_log_name' ] )
24602470 else :
24612471 try :
24622472 with open ('/dev/stderr' , 'w' ):
0 commit comments