Jump to content

Creating Function with log not wokring


Recommended Posts

Im kind of new to creating these kind of functions.

Func Log($Message)
 FileWriteLine($FILE, "Program: " & $Message & @HOUR & ":" & @MIN & @LF)
 Endfunc

But what is wrong with that?

You might want to look into _FileWriteLog()

Writes current date,time and the specified text to a log file.

#Include <File.au3>

_FileWriteLog($sLogPath, $sLogMsg[, $iFlag = -1])

[size="1"][font="Arial"].[u].[/u][/font][/size]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...