# Get log

> Returns the installation log for a unit and package relation.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/package-functions/get-log/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Returns a log for a unit package relation.

## Syntax

GetLog(Byval UnitName as String, Byval UnitType as String, Byval PackageName as String, Byval PackageVersion as String, Byval PackageType as String) as String

## Parameters

***UnitName (String)***

The name of the unit

***UnitType (String)***

The type of the unit

***PackageName (String)***

The name of the package

***PackageVersion (String)***

The version of the package

***PackageType (String)***

The package type;

- "1" (Computer)
- "2" (User)

## Return value

If successfull, the function returns the logfile from the installation of the specified package for the specified unit

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
wscript.echo oCMS.SetInstanceManagementPoint("1") 
wscript.echo oCMS.GetLog("Client","Computer","Winrar","v3.0","1") 
```
