.LG2 File Extension
Message Queuing Message State File
Developer | MIcrosoft |
Popularity |
1.0 | 1 Vote |
What is an LG2 file?
An LG2 file is a log file created by Microsoft Message Queuing (MSMQ), a technology implemented in Windows for asynchronous communication between applications across different networks. It contains information about the state of a Queueing Message log (QMLog) .MQ file that is currently being written to by MSMQ. LG2 files temporarily store message information, along with .LG1 files, in case the MQ file becomes corrupt during the writing process.
More Information
MSMQ allows applications that are running across separate networks and at different times to communicate with each other. When an application sends a message to an application on another network that is currently offline, the message is placed in a queue. When the receiving application becomes accessible, the message(s) stored in the queue is sent.
The messages communicated between applications are saved in MQ files. These files may contain messages from a single queue or from multiple queues and may grow up to 4 MB in size. Once they reach 4 MB, another MQ file is generated. Since messages may occur over a long span of time, information is written to LG1 and LG2 files to log the state of the MQ file in case anything happens to it.
You will most likely only encounter an MSMQ LG2 file if you are a developer of a system that utilizes MSMQ and are exploring the MSMQ\Storage folder. This folder also contains one or more MQ files for which the LG1 and LG2 files were created to store logs.
NOTE: The MSMQ messaging protocol was developed by Microsoft and introduced in Windows NT 4 and Windows 95.
Common LG2 Filenames
MQInSeqs.lg2 - Contains a log of messages by connected applications.
MQTrans.lg2 - Contains a log of transaction operations between application.