mIRC Homepage
Posted By: garaone Docu for the mIRC *.log syntax - 29/01/03 02:17 AM
i want to write a *.log analysing software...
now i search a documentation of the *.log syntax

thx for all infos
Posted By: theRat Re: Docu for the mIRC *.log syntax - 29/01/03 12:55 PM
too hard to open a *.log file with a text editor and discover the syntax yourself? It isn't so complicated
Posted By: garaone Re: Docu for the mIRC *.log syntax - 29/01/03 04:34 PM
the chance is very high that i not have all possibilities of log-outputs in my personal logs...

and its not motivating, if you find a new output that destroy all your implementationplans
Posted By: AKO Re: Docu for the mIRC *.log syntax - 29/01/03 04:51 PM
It always outputs the same each time?

If you want to know a lot about log parsing, check with the creator of mircstats... www.mircstats.com
Posted By: Doqnach Re: Docu for the mIRC *.log syntax - 29/01/03 10:47 PM
everything you see in your logs is exactly what you see in your screen... it's a pure dump of your window!

so it's not hard to see...

only thing is that you can choose how to date you files and order them in diverent drives and such...
Posted By: qwerty Re: Docu for the mIRC *.log syntax - 30/01/03 08:31 AM
You do have a point...the only person who does in this thread.

You are right that there isn't only one format for logs. From personal experience only, it seems there are two kinds of logs (I learnt that during the time I made my own log viewer). In both types, the log file is a series of chunks of text separated by empty lines.A chunk of the first type, which is possibly created when you just check the "Logging..." item, is like this:
Code:
Session Start: <fulldate>
[color:blue]Session Ident: <channel/nickname>[/color]
[color:green]Session Ident: <channel/nickname> (<network>, <your nick>) (<address>)[/color]
<conversation>
.....
.....
<conversation>
Session Close: <fulldate>

<fulldate> is the full date, in the exact format returned by the $fulldate identifier.
<channel/nickname> is the channel name that's logged. If it's a query, it's the person's nick.
<address> is the nick's address (if you're logging a query), in the format "user@host.domain"
The second "Session Ident" line (green part) is often found in my logs. There may be logs that only have the blue line, others
that only have the green line and others that have both lines (most of my recent logs are of the 3rd type)


The other type of logs, which is probably what you get when you "save the buffer" (from the "Buffer..." menu item) is this:
Code:
Start of &lt;channel/nickname&gt; buffer: &lt;fulldate&gt;
[color:blue]Session Ident: &lt;channel/nickname&gt;[/color]
[color:green]Session Ident: &lt;channel/nickname&gt; (&lt;network&gt;, &lt;your nick&gt;) (&lt;address&gt;)[/color]
&lt;conversation&gt;
.....
.....
&lt;conversation&gt;
End of &lt;channel/nickname&gt; buffer    &lt;fulldate&gt;

Notice the multiple spaces in the last line, it seems mirc does that to align the first <fulldate> with the second.

I hope this info helped, although I'm not sure it's 100% accurate or complete.
Posted By: Online Re: Docu for the mIRC *.log syntax - 30/01/03 10:19 AM
The green line may appear only when the query window is open by the other side, because only then his address is revealed. you see many occurrences of that line since lots of people love to message you smile

Also, if the "Timestamp logs" is enabled, expect that (third) line to be preceded by a timestamp.

Odd thing, here the third line never contained my nick nor network, with or without the "Include network" option enabled. it's just
Code:

[color:green]Session Ident: &lt;nick&gt; (&lt;address&gt;)[/color]
Posted By: qwerty Re: Docu for the mIRC *.log syntax - 30/01/03 10:42 AM
Thanks for the extra info, I omitted a few things that may be useful to me too at some point smile
© mIRC Discussion Forums