LogFile Class

class NXOpen.LogFile

Bases: object

Represents the system log file

To obtain an instance of this class, refer to NXOpen.Session

New in version NX3.0.0.

Properties

Property Description
FileName Returns the name of the system log file

Methods

Method Description
Write Write a string to the system log file
WriteLine Write a string with a following new line to the system log file

Property Detail

FileName

LogFile.FileName

Returns the name of the system log file

-------------------------------------

Getter Method

Signature FileName

Returns:
Return type:str

New in version NX3.0.0.

License requirements: None.

Method Detail

Write

LogFile.Write

Write a string to the system log file

Signature Write(s)

Parameters:s (str) – string to write to the syslog

New in version NX3.0.0.

License requirements: None.

WriteLine

LogFile.WriteLine

Write a string with a following new line to the system log file

Signature WriteLine(s)

Parameters:s (str) – string to write to the syslog

New in version NX3.0.0.

License requirements: None.