{"success":true,"data":{"ext":"lgc","name":"Windows application log","description":"Windows application log (LGC) is a log file format developed and maintained by Microsoft for recording application events and related system activity in Windows environments. It is used by operating system components and installed applications for troubleshooting, auditing, and reviewing runtime behavior or errors. The format is generally safe, but logs may contain sensitive paths, usernames, or event details, so access should be restricted when sharing or analyzing files 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":["lgd"],"usage":{"python":"def is_lgc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LGC 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 isLGC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7B, 0x0D, 0x0A, 0x6F, 0x20]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsLGC(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}"}}}