Log2File functions