# ircg_set_file

(PHP 4 >= 4.2.0, PHP 5 <= 5.0.5)

ircg_set_file — Set logfile for connection

### Description

bool ircg_set_file ( resource `$connection` , string `$path` )

ircg_set_file() specifies a logfile in which all output from the current `connection` will be logged.

### Parameters

`connection`

  A connection resource handle returned by ircg_pconnect().

`path`

  Path to the logfile.

### Return Values

Returns `TRUE` on success or `FALSE` on failure.