How to capture application log in external file for wildfly using standalone.xml

I am using Wildfly docker image in Windows machine. Need to send application logs to an external file. I am running docker image like

docker run -p 8080:8080 –env MYLOGS=C:/Mylogs wildflytest-app:v.
In standalone.xml set the path as

            <path name="logfile.path" path="${env.MYLOGS}" />       

and in logging module added

<periodic-rotating-file-handler name="MY_HANDLER" autoflush="true">
                   <named-formatter name="PATTERN"/>
               <file relative-to="logfile.path" path="applogs.log"/>
                   <suffix value=".yyyy-MM-dd"/>
                   <append value="true"/>
           <logger category="com.wildlfy" use-parent-handlers="false">
               <level name="INFO"/>
                   <handler name="MY_HANDLER"/>

Earlier the log was getting published in console only, but after adding logging handler it is not captured in console also.I can’t see the log file created in the location specified as well.
Also not sure if my path value is read in standalone.xml. echo is not accepted in standalone.xml file . How can I check that?

Source: Docker Questions