I’m building escript and using logger but i have noticed that if my script finishes too fast not all log information is printed (either in terminal or in a log files). Currently i’m working around this problem by invoking timer:sleep/1 and it seems to solve my problem. However sleep time and
logger_disk_log_h needs to be in agreement which is explicit coupling that i don’t like. Is there any facility like
flush that would force logger to output what it has at the moment so that use of sleep could be eliminated?
note: i’m currently not starting my code as