Create a log folder for each player?Solved
Can create a folder for each player with logs?
What logs? I suppose you'll need a plugin for that.
5f5631c33fa20.png misticos
What logs? I suppose you'll need a plugin for that.

make a record with LogToFile, each player

I wonder if I can use the folder name.

Ah. Just do "Folder/File", should work.
5f5631c33fa20.png misticos
Ah. Just do "Folder/File", should work.

ok thanks :D

5f5631c33fa20.png misticos
Ah. Just do "Folder/File", should work.

sorry. How do I create a folder?

You don't create it just use it in path it should create it for you.
5f5631c33fa20.png misticos
You don't create it just use it in path it should create it for you.

For example
UserID = 76~~~~
UserID/Attack.txt
UserID/Hit.txt
UserID/Kill.txt
Is it not possible to use it this way?

i've told you just use it in log file name, like "{id}/Attack".
5f5631c33fa20.png misticos
i've told you just use it in log file name, like "{id}/Attack".

My problem is
{Player.UserID String}/Attack in the filename
If you do it like this
Pluginname_768124124124/Attack or  Pluginname_768124124124\Attack so an error occurs.

What is the error?...
5f5631c33fa20.png misticos
What is the error?...
(19:37:31) | Failed to call hook 'OnPlayerAttack' on plugin 'CombatLog v1.0.0' (DirectoryNotFoundException: Could not find a part of the path "D:\rust\steamapps\common\rust_dedicated\oxide\logs\CombatLog\combatlog_76561198995712345\attack.txt".)

at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x00164] in <fb001e01371b4adca20013e0ac763896>:0

at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0

at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)

at System.IO.StreamWriter.CreateFile (System.String path, System.Boolean append, System.Boolean checkHost) [0x0001c] in <fb001e01371b4adca20013e0ac763896>:0

at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize, System.Boolean checkHost) [0x00055] in <fb001e01371b4adca20013e0ac763896>:0

at System.IO.StreamWriter..ctor (System.String path, System.Boolean append, System.Text.Encoding encoding, System.Int32 bufferSize) [0x00000] in <fb001e01371b4adca20013e0ac763896>:0

at System.IO.StreamWriter..ctor (System.String path, System.Boolean append) [0x00008] in <fb001e01371b4adca20013e0ac763896>:0

at (wrapper remoting-invoke-with-check) System.IO.StreamWriter..ctor(string,bool)

at Oxide.Plugins.CSharpPlugin.LogToFile (System.String filename, System.String text, Oxide.Core.Plugins.Plugin plugin, System.Boolean timeStamp) [0x00087] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0

at Oxide.Plugins.CombatLog.Log (System.String id, System.String message) [0x0006e] in <1c58278252da45029a6e520107c02bfa>:0

at Oxide.Plugins.CombatLog.Messages (BasePlayer attacker, HitInfo info, System.Boolean isKill, System.Boolean isHead) [0x00580] in <1c58278252da45029a6e520107c02bfa>:0

at Oxide.Plugins.CombatLog.Hit (BasePlayer attacker, HitInfo info) [0x00060] in <1c58278252da45029a6e520107c02bfa>:0

at Oxide.Plugins.CombatLog.OnPlayerAttack (BasePlayer attacker, HitInfo hitinfo) [0x00000] in <1c58278252da45029a6e520107c02bfa>:0

at Oxide.Plugins.CombatLog.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <1c58278252da45029a6e520107c02bfa>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <d09a1f46ca2f4432811bcfe45ad13c7b>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <cf88a28c7fb44d36890d85a78331cc9d>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <cf88a28c7fb44d36890d85a78331cc9d>:0
It doesn't create directories, it is basic.
Oh, thought it does because I saw directories in logs folder, sorry. It was data files that let you specify folders you want.
5f5631c33fa20.png misticos
Oh, thought it does because I saw directories in logs folder, sorry. It was data files that let you specify folders you want.
It creates a folder based on the plugin name.
Locked automatically