| **Navigation:**  [[introduction.htm|Language Reference]] > [[chapter runtime properties.htm|App C - PROP: Runtime Properties]] > Runtime VIEW and FILE Properties >====== PROP:Log ====== | [[prop held.htm|{{btn_prev_n.gif|Previous page}}]][[chapter runtime properties.htm|{{btn_home_n.gif|Return to chapter overview}}]][[prop logout.htm|{{btn_next_n.gif|Next page}}]] | | || Property of a FILE that writes a string to the current profile output file (assigned to PROP:Profile). This string is placed on its own line in the file. (WRITE ONLY) **Example:** **FileName STRING(256)** **Customer  FILE,DRIVER('TopSpeed')** **Record    RECORD** **Name      STRING(20)** **       END** **       END** ** CODE** ** Customer{PROP:Profile} = 'CustLog.TXT'   ** **!statement above turns profiling on, output file:CustLog.TXT** ** OPEN(Customer)** ** Filename = Customer{PROP:Profile} !Get name of current log file** ** Customer{****PROP:Log****} =   CLIP(FileName)    & ' ' & |** **            FORMAT(TODAY(),@D2) & ' ' & | ** **            FORMAT(CLOCK(),@T1)  ** **!Write a line of text to the log file** ** SET(Customer)** ** LOOP** **  NEXT(Customer)           !All file I/O action is logged out to ** **  IF ERRORCODE() THEN BREAK.    ! the CustLog.TXT file** ** END** ** Customer{PROP:Profile} = ''    !Turn profiling off**