I can't seem to find any info on this method, I am trying to use it to replace the old ConVar.Server.Log one and it keeps pointing to "\oxide\logs\" and when you specify a path ie: "/oxide/data/<plugin name/" any info on this method would be good. I'm trying to save log info into a text file so I can review it later
Solved LogToFile method usage?
Discussion in 'Rust Development' started by Manvaril, Mar 5, 2018.
-
Code:
Puts();
-
Wulf Community Admin
For logging to custom file, take a look at the Logger plugin for an example: uMod - Logger. -
I got the LogToFile method from Logger, logger makes log files in it's folder ie: oxide/logs/Logger/ and LogToFile also prepends the plugin name to the file ie: logger_
I need to make a log file and put it in the data folder with a custom file name, I will also need to put ones in folders in the data folder ie: data/pluginname/customdir/customfile.txt -
Wulf Community Admin
-
is there anything that can do what I'm asking for it to do? I know ConVar.Server.Log was able to do this
-
Wulf Community Admin
-
would it be possible to use System.IO.File.WriteAllText? or StreamWriter?
-
Wulf Community Admin
-
is there a way to use a json file like other plugins use in their /data/ folders? would you be able to use a folder structure in that /data/ folder
-
Wulf Community Admin