UE2:FileLog (UT2004): Difference between revisions
Auto-generated page |
m Added Warning |
||
Line 47: | Line 47: | ||
{{code|native final function '''Logf''' ([[string]] '''LogString''')}} | {{code|native final function '''Logf''' ([[string]] '''LogString''')}} | ||
Writes LogString to the file. | |||
'''Warning''': This function will crash the instance--or possibly corrupt memory enough to cause a crash on exit or garbage collection--if a string is longer than 1024 characters or somewhere above that number. Your script should work around this issue by splitting the LogString up before passing it to this function. | |||
====OpenLog==== | ====OpenLog==== |
Latest revision as of 12:06, 30 June 2014
- Package:
- Engine
- This class in other games:
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Class: Engine.FileLog Parent: Engine.Info
Creates a log device. Important notes about this class since version 2225: - the log file is always closed when destroyed - open log files have the extention .tmp and change to .log when closed - old .tmp files will be overwritten - limited freedom in file extentions, allowed extentions: log, txt, html, htm
Properties
LogAr
Type: pointer
LogFileName
Type: string
Modifiers: const
TempFileName
Type: string
Modifiers: const
Native functions
CloseLog
Logf
Writes LogString to the file.
Warning: This function will crash the instance--or possibly corrupt memory enough to cause a crash on exit or garbage collection--if a string is longer than 1024 characters or somewhere above that number. Your script should work around this issue by splitting the LogString up before passing it to this function.
OpenLog