{"success":true,"data":{"ext":"lgd","name":"Windows application log","description":"Windows application log is a Microsoft Windows log file format maintained by Microsoft as part of the operating system's event logging infrastructure. It records application events, errors, warnings, and diagnostic information for use by system administrators, support tools, and applications that rely on Windows Event Viewer or related logging APIs. The format is generally safe, though log files may reveal system details and are best reviewed carefully when obtained from untrusted sources.","mime":[],"risk_level":"Safe","signatures":[{"hex":"7B 0D 0A 6F 20","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["lgc"],"usage":{"python":"def is_lgd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LGD by magic bytes.\"\"\"\n    signature = bytes([0x7B, 0x0D, 0x0A, 0x6F, 0x20])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isLGD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7B, 0x0D, 0x0A, 0x6F, 0x20]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsLGD(data []byte) bool {\n    signature := []byte{0x7B, 0x0D, 0x0A, 0x6F, 0x20}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}