Updated log directory location if the argument `-d' is present.

This commit is contained in:
jvelilla
2015-01-14 20:55:24 -03:00
parent db9e40cec4
commit 8c74c7a268

View File

@@ -29,7 +29,7 @@ feature -- Logger
create l_environment
if attached separate_character_option_value ('d') as l_dir then
l_path := create {PATH}.make_from_string (l_dir)
create l_log_writer.make_at_location (l_path.extended ("..").appended ("\api.log"))
create l_log_writer.make_at_location (l_path.extended ("logs").appended ("\api.log"))
else
l_path := create {PATH}.make_current
create l_log_writer.make_at_location (l_path.extended("api.log"))