1. Home
  2. Docs
  3. Super-ExMerge On-line Doc...
  4. PowerShell Cmdlet Referen...
  5. Get-LogFiles

Get-LogFiles

Use this cmdlet retrieve log files produced by Super-ExMerge. Log files are created as trace logs which can be opened and viewed with the Microsoft Service Trace Viewer application (a copy is installed with Super-ExMerge). Log files (*.svclog) are associated with the Service Trace View program and can be opened with a double-click from Windows Explorer.

Log files, by default, are located in %Public%\Documents\Priasoft\SuperExMerge

Get-LogFiles

    • [-Name]

    Description

    Super-ExMerge produces several log files. The service itself maintains a log of its activities such as startup and shutdown. Each sync task, when executing, produces a log file as well.

    Use the Get-LogFiles cmdlet to list log files that exist which can then be passed to the Get-LogEntries cmdlet.

    The cmdlet support wildcard values for log file names in the same format as used to select files from the file system. See the -Name parameter for detail.

    Examples

    Example 1
      
    Get-LogFiles
    Name                                               Type                                                                                             Size LastModified                                     
    ----                                               ----                                                                                             ---- ------------                                     
    SyncServiceLog                                     ServiceLog                                                                                      42820 6/24/2019 5:55:45 PM                             
    rick@source.com                                    Mailbox-to-PST                                                                                1530570 6/24/2019 5:59:47 PM                             
    joe@source.com                                     Mailbox-to-PST                                                                                1530570 6/24/2019 5:59:47 PM                             
    
    

    This example, used without parameters, will output all available log files.

    Example 2
      
    Get-LogFiles -Name joe@source.com
    Name                                               Type                                                                                             Size LastModified                                     
    ----                                               ----                                                                                             ---- ------------                                     
    joe@source.com                                     Mailbox-to-PST                                                                                1530570 6/24/2019 5:59:47 PM                             
    
    

    This example retries the log file for joe@source.com. If no log exists with the name provided, a warning text is written with information, for example: WARNING: No log files were found for the given name or pattern.

    Example 3
      
    Get-LogFiles -Name *source.com
    

    This example will list all log files that end with ‘source.com’ in the log file name.

    Example 4
      
    Get-LogFiles -Name joe*
    

    This example will retrieve all log files that start with ‘joe’ in the log file name.


    Parameters

    -Name

    The Name parameter specifies either the specific name of a log file, or a file system wildcard pattern that can retrieve multiple log files that match the pattern.

    Required:
    No
    Type:
    String
    Aliases:
    None
    Position:
    Not a positioned parameter. Use by name only.
    Default Value:
    None

    Output

    This cmdlet will place one or more PSObject objects on the pipeline. Each object will have the following properties:

    NameThe name of the log file
    TypeThe type of log file.
    SizeThe size of the log file, in bytes
    LastModifiedThe last modification date of the log file.
    LogFileA System.IO.FileInfo object of the log file itself. This object is passed to Get-LogEntries when passed on the pipeline. Note: This property is not shown by default.

    How can we help?