Skip to content

Instantly share code, notes, and snippets.

@AvalonWot
AvalonWot / NLOG app.config AutoRotate7 Days
Created September 25, 2023 02:51 — forked from imanabu/NLOG app.config AutoRotate7 Days
NLog Configuration That Auto-Rotate with Config Section
<configSections>
<section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog"/>
</configSections>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="console" xsi:type="Console" layout="${longdate} ${callsite} ${level} ${message}"/>
<target name="logfile" xsi:type="File" fileName="C:\temp\log.txt" layout="${longdate} ${callsite} ${level} ${message}"/>
<target name="rotatelog" xsi:type="File"
layout="${longdate} ${logger} ${message}"
fileName="c:/temp/logs/alogfile.txt"
@AvalonWot
AvalonWot / Haxe Format ABC example
Created November 25, 2022 02:58 — forked from Herschel/Haxe Format ABC example
Example of using the Haxe format lib to parse and modify Flash ABC bytecode
package;
import haxe.io.Bytes;
import haxe.io.BytesInput;
import haxe.io.BytesOutput;
import haxe.Resource;
import format.abc.Data;
using Main;
class Main {