Tile - YDebug - Write To Log – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
(Added file name and content info)
No edit summary
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Image:Ylands_Tile_-_Write_to_log.png]]
<!---
*Adds '''text''' entry to '''game log''' file.
THIS PAGE WAS GENERATED AUTOMATICALLY; DO NOT EDIT IT, OTHERWISE YOUR CHANGES WILL BE LOST DURING FUTURE UPDATE.
-->
== Write To Log(Text) ==


=Notes=
[[File:YlandsTile-275.png]]
*Game '''log''' can be found in '''game data''' - <SteamLibrary>\steamapps\common\Ylands\Ylands_Data with the filename log_userscripts.txt
 
*Each line written to the log will begin with #. The log also includes warnings and errors with ## and game start and game stop times with ###.
<pre>static log(text: any): void;</pre>
*Game log is kept only until next Ylands launch.
=== Parameters ===
 
==== text ====
 
Texto print in to the log
 
=== Availability ===
 
[[Ylands:Tile Availability - Server|Server]], [[Ylands:Tile Availability - Custom Controller|Custom Controller]]
 
=== Description ===
 
Adds '''text''' entry to '''game log''' file.
 
=== Notes ===
 
* All logs are automatically generated in the Ylands installation directory '''...\Ylands_Data'''.
* Owners of the server and game author can download '''Script logs''' from the server by typing '''/getuserscripts''' command to chat.
* Logs are downloaded to your Ylands profile **...\local\FilesFromSessionHost**.




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}


[[Category: Instructions]]
[[Category: Instructions]]
[[Category: Ylands 0.10]]

Revision as of 12:15, 12 November 2021

Write To Log(Text)

YlandsTile-275.png

static log(text: any): void;

Parameters

text

Texto print in to the log

Availability

Server, Custom Controller

Description

Adds text entry to game log file.

Notes

  • All logs are automatically generated in the Ylands installation directory ...\Ylands_Data.
  • Owners of the server and game author can download Script logs from the server by typing /getuserscripts command to chat.
  • Logs are downloaded to your Ylands profile **...\local\FilesFromSessionHost**.