Hello, i am using Linux HLDS. I want to log my plugins to dynamically created directories like
logs/2006-10
logs/2006-11
logs/2006-12
but function log_to_file can create ONLY file.. Does anybody know ho create this dynamically? I must use this
Code:
...
get_time("/addons/amxmodx/logs/CM/%Y-%m-%d.log", filename, 99)
...
log_to_file(filename, logline)
because
Code:
get_time("/addons/amxmodx/logs/CM/%Y-%m/%d.log", filename, 99)
log_to_file(filename, logline)
doesnt work. Directory xx-xx isnt created.
Please, help me..