implemented FileStream to log