Log files and custom logging
This page will cover the locations of the log files, along with the associated variables and how to leverage them for custom logging or creating custom log files.
Server-side logs
On the server, log files are generated in a folder called "Logs" inside DeployR Content folder (by default, C:\ProgramData\2Pint Software\DeployR, but this can be changed in the DeployR settings). This is also the location that logs from the endpoints will be uploaded to from the OSD process (starting in version 1.1):

The Sync.log will show the results of the server pulling content from the internet to build several of the content items used by the OSD process.
Client-side logs
During the execution of a task sequence, logs are written to track the progress.
Variables
_DEPLOYRLOGS:
Path were DeployR will create the DeployR log file. This variable can be used in custom scripts as well to let the script know where it can save any custom logging it does.
Gets set along the way moving from X to S to C depending on the stage of the task sequence. More details about the location of the DeployR.log below.
Log files
DeployR.log
Contains details about the steps from the task sequence
DeployR-bootstrap.log
Contains details about launching the task sequence and restarting it as well as the details of the environment. Some details include:
Importing the certificate files
Listing the PowerShell and .Net versions
Path variable
Finishing of the task sequence and cleanup of folders
DeployR-BootstrapPE.log
Imports Certificates into WinPE
Configures StifleR agent (if integrated)
Starts the Client Shell
Locations
DeployR.log
Windows PE, before the Format step
X:\_2P\logs
Windows PE, after the Format step
s:\_2P\logs
Full OS during active task sequence, for failed task sequence that never successfully finished
C:\_2P\logs
Note that S:\_2P\logs is the same "physical" location as C:\_2P\logs, as both S\ and C:\ are the the assigned drive letter for the OS Drive, one is just in Windows PE, and the other from the full OS.
Full OS after task sequence completed successfully
C:\windows\temp\DeployRLogs
A full set of logs are also updated to the server's "Logs" folder in the DeployR content folder.
DeployR-bootstrap.log
c:\windows\temp
DeployR-BootstrapPE.log
Windows PE: X:\windows\temp (does not get migrated to full OS; it will disappear when Windows PE reboots)
Custom script logging
For adding logging into DeployR for your scripts or custom steps, the two main options are leveraging writing to the DeployR.log, or creating a different log file entirely.
Writing to DeployR log
Custom scripts can leverage the simple Write-Output or Write-Host functions to have information be written to the log file. This is very similar to how you can write to the SMSTS.log in ConfigMgr.
Here is an example from a script that is taking several variables, and writing them out to the log for easy reading later.
Here is the result in the DeployR log. In yellow are the Write-Output and Write-Host commands; the rest are normal DeployR entries.

Custom log files
The other option is to have entirely new log files created. This is useful on complex steps, or application installations where you would like the installer log created and added to the DeployR log folder (and therfore uploaded to the DeployR server). In the custom script, let your log path to the DeployR log variable
It can then be leveraged in the command line for where the log should go

Writing to custom log with a function
The script can also use a logging function where you would write out to a log file. These are functions that have worked well in creating a "CMTrace"-style log.
The result from this example:


Last updated

