SmartAssembly 6.5 and later contain logging. The log file can be very useful to us if you encounter problems. 

By default, creation of a log file is disabled.

When enabled, the log file is saved in %LocalAppData%\Red Gate\SmartAssembly 6\SmartAssembly.log

Enabling logging

To enable logging:

  1. Using a text editor, open %ProgramFiles%\Red Gate\SmartAssembly 6\SmartAssembly.exe.config
  2. Uncomment the <appender> and <root> elements, which are children of the <log4net> element.
  3. Restart SmartAssembly.

A log file is created the next time SmartAssembly is used to process an assembly.

Configuring logging

The following levels are valid:

ERROR

Exceptions thrown by SmartAssembly

WARN

Exceptions and steps taken by SmartAssembly that you may want to be aware of. For example, details of when a type had to be renamed during merging, because the name was already used in the assembly you were merging into.

INFO

As WARN, and other processing information shown in the user interface.

Also lists the assemblies being embedded and merged.

DEBUG

As INFO, and other information such as where assemblies were resolved, feature usage IDs and XAML references that had to be updated.

TRACE

Includes all of the above, and details of why classes were excluded from obfuscation or pruning.

Note that, when SmartAssembly is used with a large assembly, a log created at this level could be very big.