Salesforce

Logging Git-generated Commands from Magic xpa (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Logging Git-generated Commands from Magic xpa

You can log all the Git commands that were executed from Magic xpa Studio.

The special flag [MAGIC_SPECIALS]SpecialGITLog = <full Filename> is provided to create a file and log the commands into it.

When the flag exists under [MAGIC_SPECIALS] with the value SpecialGITLog=<full Filename> where <full Filename> is the filename with absolute path at which the log file would be created, all the direct Git commands executed in Magic xpa studio are logged in the given file.

For example, [MAGIC_SPECIALS]SpecialGITLog = Gitlog\myGitlog.log

In case the file path is relative as in the above example, the log file is created in the working directory.

Highly Recommended:

  • The log file must reside outside the current local Git repository. It is vital for the developer to be able to locate the logged content especially while changing branches.

Mandatory:

  • It is required to ignore this file in .gitignore.

Since version: 4.7

Related Topics

Connecting Magic xpa with Git Repository

Reference
Attachment 
Attachment