Two ways to write the logging, halt mode and wrap mode
Firstly, halt mode
31: disk_log:open([{file,"/tmp/ddddd"},
{type,halt},
{size,1000},
{name,dave},
{linkto,self()},
{mode,read_write}])