The AgentLogFile property specifies the SQL Server Agent log path and file name.
object.AgentLogFile [= value]
object
Expression that evaluates to an object in the Applies To list
value
String that specifies the path and file name
String
Read/write
HRESULT GetAgentLogFile(SQLDMO_LPBSTR pRetVal);
HRESULT SetAgentLogFile(SQLDMO_LPCSTR NewValue);
By default, the SQL Server Agent log is stored as x:\Mssql75\Log\Sqlagent.out. Use the AgentLogFile property to specify a location other than the default when running multiple instances of SQL Server Agent.
Note AgentLogFile can be used with Microsoft® SQL Server™ 2000 and SQL Server version 7.0.