Shoutbox

[Release] Log Manager - Version 1.1.008 - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Release] Log Manager - Version 1.1.008 (/showthread.php?tid=77116)

[Release] Log Manager - Version 1.1.008 by Matti on 08-30-2007 at 02:28 PM

Five months of programming.
Way too many hours of debugging.
Listening to the feedback of a selected group of beta testers.
Waisting too many thread IDs on Help Me topics.
Bugging busy script developers for way too long with my questions.

All that just with only one purpose: a script.

I can now present you the immediate availability of my third public Messenger Plus! Live script. Hereby, I present you:

Log Manager
Version 1.1.008 FINAL

Err, what? (a.k.a. Description)
The Log Manager script was made based upon the idea of some forum members to have a way to easily encrypt, decrypt or change the password of multiple Plus! Live chat logs using the command-line functions of the Log Viewer executable, which was formerly done by using .BAT files. With a fully functional browser which lets you browse through your log folders and provides information about log files and folders, you can choose which file or folder you want to use to start an encryption action. Next, you can check the files you want to process or add more files to list, specify the password and output directory to use, choose whether you want to overwrite your old log files and finally watch your log files getting processed. Or, you may want to start a merging action and select multiple log files to merge into one single log file. Featuring a brand new multilingual support system which doesn't affect the original interface XML files, an update checker and a downloader for additional language files, Log Manager gives you full control over your log files. Just like it should be.

What's in the box? (a.k.a. Features)
The script includes...
  • ...a browser - A log files browser window which let you browse through your log files and view information about it. Additionally, you can view session information of your log files and if you specify your chat log encryption password, you can also view the sessions of encrypted log files. From this window, you can choose a folder or file to execute an encryption action on.
  • ...encryption actions - By the use of a user-friendly window, you can choose files to encrypt, decrypt or change the password of. It shows you basic information about the files, such as file size and last modification time, and lets you set the options for the process, such as your password and the output folder. To prevent you from accidentally hitting the Start button, a confirmation first must be accepted before the process starts. Then, you can see the progress of the action by the use of progress bars and in the status column of the files list.
  • ...log merging (v1.1+) - A lot of people have a main desktop computer and a secondary laptop or computer at someone else's house. When both these systems have Plus! installed and keep log files, it may be very annoying to keep those logs together. For example, you could copy all log files from one computer to your main computer, but you'd be left with 2 log files per contact. Here's where the Log Merge feature can help you.
    In Log Manager, log merging means that you select 2 or more log files and merge them into 1 log file. This can be helpful in the case of multiple systems, or if you simply want to merge all log files of one month/contact into 1 log file to use as backups for example. The log merge feature sorts all sessions by their date and in case you select encrypted files, it will try to decrypt these with a specified password before the merging starts. You can also choose to immediately encrypt the merged file if you want.
  • ...customization options - You're the boss. If you don't want the session information to be shown, you can turn it off. If you think you've found a bug, you can turn on Log Manager's script debugging option to send all actions it takes to Plus! Live's Script Debugging window. If you want to restore the default settings, you can click Restore Defaults. It's up to you what you want and what you don't want.
  • ...multilingual support - Log Manager provides translators to translate every message used in the script, without the need to rewrite the interfaces XML. All translation actions are done using the Win32 API, which is much faster and more effective. Translations are saved in an XML file, and the default English translation also contains a lot of translation notes to clarify what a specific message stands for. If the language of a user isn't included in the script, the user can try to look in the Download Languages window, which shows all available languages for Log Manager and lets him/her download the language of choice directly into Log Manager.
  • ... an updater - Every time the script starts, it'll check for new updates. If it finds a new version, it'll inform the user about this and gives him/her the ability to download and install it. All this is accomplished through a simple user interface, providing the user the new version number, the release date and the release notes. In a later version, I might want to add an option to turn the auto-updater off, but I seem to have forgot this at the moment. :P

Some eye-candy please! (a.k.a. Screenshots)
A nice GUI is very important for a script. You don't want your users get lost in the windows. Therefore, I wanted to provide an good looking, easy-to-use interface, but still with all features in one place. Check out the result, it's in the attachment! ;)

What kind of weird things can I expect in this pile of sh*t? (a.k.a. Known Issues)
The following list contains all known, not yet fixed issues in the current release. If you think you found a bug or an issue, please PM me or post a reply so I can take a look at it.
  • In the Preferences window, when you choose a language and click Apply twice, the navigation links act weird. I guess this is a Plus! issue when you call SetControlText on a right-aligned LinkControl to set it to the same text as it already contains. I don't really know how to fix this properly.
  • In the Browse window, when you select a folder with subfolders in it containing valid log files and start an encryption action, those log files aren't added to the list and may give you a "No valid log files found" error. Currently, this is a built-in limitation to prevent Messenger hanging while browsing through hundreds of files. I may want to add an option to specify how many levels deep the browser should look for files, but that depends on public request. So, if you think this should be implemented, please tell me! I make this script to fit the taste of the public, not only to fit mine. ;)
  • When you choose "Merge Logs..." from the script menu, it'll try to open 2 files which may not exist. This is a remainder of the testing period and I forgot to remove that. It'll be fixed in the next update, or you can already change it now by searching in "Log Manager.js" for:
    code:
    case "MnuMerge":
       var array = [
          PathAppend(Pref["LogsLoc"], "augustus 2007\\<snipped to avoid spam>.ple"),
          PathAppend(Pref["LogsLoc"], "augustus 2007\\<snipped to avoid spam> (2).ple")
       ];
       LoadWnd("WndMerge", LoadMerge, 0, array);
       break;
    and replace it with:
    code:
    case "MnuMerge":
       LoadWnd("WndMerge", LoadMerge);
       break;
    My apologies for this.

Gimme!!! (a.k.a. Download)
Alright, enough talk! Here's the download link! :D

» Download Log Manager 1.1.008 here!

Note for translators: If you're a translator and want your translation to be published in the official languages database, feel free to PM me your translation and I'll add it.

Any questions, suggestions and feedback are more than welcome! :)


Update #2 - 15/09/2007 19:21 CET
Log Manager is updated to version 1.1.008. The most important new feature is the log merging feature, and is described above. This update is also available through the script's update checker. I'd also like to note that a German and Spanish translation for 1.0.005 are available from the script's language downloader, and that translators are already busy to update their translations for the new version.
Update #1 - 30/08/2007 17:48 CET
An error in the Dutch translation was reported by Daryl. Any Dutch users who downloaded the script before this update was reported are recommended to download the new language file by going to Preferences > Language > Download Languages, check "Nederlands (Dutch)" and click Download. My apologies for this.
RE: [Release] Log Manager - Version 1.0.005 by matty on 08-30-2007 at 02:47 PM

Looking good!


RE: [Release] Log Manager - Version 1.0.005 by Daryl on 08-30-2007 at 03:02 PM

Nice one :clap: :bow:
Keep on going Matti!


RE: [Release] Log Manager - Version 1.0.005 by Lou on 09-01-2007 at 01:24 AM

Looks like you made the news ;-) Looking awesome.


RE: [Release] Log Manager - Version 1.0.005 by prashker on 09-01-2007 at 02:37 AM

I love the script, very well done. Just 1 suggestion

[Image: attachment.php?pid=845999]

Have those clickable and it opens the log at the Session point inside that window (or in the normal Log Viewer).

:)


RE: [Release] Log Manager - Version 1.0.005 by Matti on 09-01-2007 at 10:01 AM

quote:
Originally posted by SonicSam
I love the script, very well done. Just 1 suggestion

[Image]

Have those clickable and it opens the log at the Session point inside that window (or in the normal Log Viewer).

:)
Well, I'm actually waiting for the next Messenger Plus! Live to support BrowserControls. Then, I may be able to re-create the Log Viewer and then make those links open the log viewer. Because at the moment, I rely on the command line functions of Log Viewer.exe, which only allow me to open, encrypt, decrypt or change the password of a log file, there is no option to view a log file and scroll to a specific session.
RE: [Release] Log Manager - Version 1.0.005 by Eddie on 09-01-2007 at 02:41 PM

Cool script :) good job ;)


RE: [Release] Log Manager - Version 1.0.005 by albert on 09-01-2007 at 02:57 PM

Amazing script, amazingly done.
Good job.


RE: [Release] Log Manager - Version 1.0.005 by NanaFreak on 09-02-2007 at 01:42 AM

Nice interfaces Mattike ;o


RE: RE: [Release] Log Manager - Version 1.0.005 by prashker on 09-02-2007 at 02:48 AM

quote:
Originally posted by Mattike
quote:
Originally posted by SonicSam
I love the script, very well done. Just 1 suggestion

[Image]

Have those clickable and it opens the log at the Session point inside that window (or in the normal Log Viewer).

:)
Well, I'm actually waiting for the next Messenger Plus! Live to support BrowserControls. Then, I may be able to re-create the Log Viewer and then make those links open the log viewer. Because at the moment, I rely on the command line functions of Log Viewer.exe, which only allow me to open, encrypt, decrypt or change the password of a log file, there is no option to view a log file and scroll to a specific session.


Mmmk, well keep up the good work :D.

(Picture made with Vista Sniping tool....hot stuff :P).
RE: [Release] Log Manager - Version 1.0.005 by Matti on 09-02-2007 at 09:16 AM

Well, first of all: thanks for all your comments! It makes me happy to know that those 5 months weren't just for making a script no-one would care about. :D

As for the next version, I can already say that it's very likely that it'll carry the version number 1.1 and that the main change will be a Log Merge feature, enabling you to select two log files (e.g. "user@hotmail.com.ple" and "user@hotmail.com (2).ple") and let you then merge those logs into one, sorted-by-session-date log file. ;) The main reason I'd like to implement this, is because some people have logs on multiple computers and may want to copy them all to one place and merge the related log files (same month, same e-mail). The GUI is almost done and pretty much the same as the Encryption window, so now it's time for me to start coding the merging functions. :)

I'll try to keep you up-to-date as much as possible on this, because I think I already kept this project secret for too long. :P


RE: [Release] Log Manager - Version 1.0.005 by warmth on 09-04-2007 at 07:17 PM

Would be lovely to see a merge feature for next releases (I know that mattike already said I would be :$)... sometimes you have one html file before activate the encryption or when you select a different folder registry option and one encrypted file in other folde, if it's the case... and you want to merge all the files together in one unique file encrypted... first time I opened the script I though that the "ADD FILE" button was for this...

My extra idea is the option of merge not only 2 encrypted files or 2 html files... but 1 encrypted file with 1 html file and the option of and encrypted or not output file :o)

btw how about save the size of the log browser window is kind of annoying have to resize it each time... and I think that the width of the browser tree window is two strait... sometimes is hard for me to see the email address of each contact...


RE: [Release] Log Manager - Version 1.0.005 by Matti on 09-05-2007 at 03:22 PM

quote:
Originally posted by warmth
Would be lovely to see a merge feature for next releases (I know that mattike already said I would be :$)... sometimes you have one html file before activate the encryption or when you select a different folder registry option and one encrypted file in other folde, if it's the case... and you want to merge all the files together in one unique file encrypted... first time I opened the script I though that the "ADD FILE" button was for this...

My extra idea is the option of merge not only 2 encrypted files or 2 html files... but 1 encrypted file with 1 html file and the option of and encrypted or not output file :o)
I can tell you that those requests are already fully implemented! :D

When you choose 1 .ple and 1 .html file, it'll decrypt the .ple file to a temporary location and will keep the .html as-is. Then, it'll simply read the contents of the decrypted and .html file and do the merging.

Also, you will have the ability to directly encrypt the outputted file. The merging process sorts all sessions and writes a .html file in a temporary location. When that's done, it'll check if the user has chosen to encrypt the file. If so, it'll encrypt to the final destination. If not, it'll only copy the file to the destination. ;)

However, there are still a lot of things I need to fix, one of them is to read from files in parts. That is, it should read 50 KB at a time, add it to the buffer and continue with the next 50 KB, just until the file pointer reaches the end of the file. At the moment, I have Eljay's ReadFile function which reads the file in one time and that seems to fail for files bigger at ~100 KB. I think I'll need some expert help with this, so if anyone wants to help me with this, please do so if you can! :)
quote:
Originally posted by warmth
btw how about save the size of the log browser window is kind of annoying have to resize it each time... and I think that the width of the browser tree window is two strait... sometimes is hard for me to see the email address of each contact...
I might want to change this. Formerly, I saw the right panel as a chance for extension of the capabilities, but it seems to have turned out that the browser is lots more important. I'll have a look at it. ;)
RE: [Release] Log Manager - Version 1.0.005 by riahc4 on 09-06-2007 at 06:13 PM

Add this to your script and it becomes perfect!


RE: [Release] Log Manager - Version 1.0.005 by Matti on 09-06-2007 at 06:23 PM

quote:
Originally posted by riahc4
Add this to your script and it becomes perfect!
Well, therefore I'd need BrowserControl support to display the log file. And I don't have that yet, not until the next Plus! Liv version comes out with support for it. Then, I might want to re-create the Log Viewer and I add a search function. However, Patchou seems to be working on this too and I don't want to "steal" Plus!' own features. After all, it's a Plus! script! ;)
RE: RE: [Release] Log Manager - Version 1.0.005 by warmth on 09-06-2007 at 07:16 PM

quote:
Originally posted by MattikeI can tell you that those requests are already fully implemented! :D

I'll have a look at it. ;)
Very nice to heard all that... If you need some test help please contact me by PM... I will do my best to help you debugging it... :o)
RE: [Release] Log Manager - Version 1.0.005 by Matti on 09-07-2007 at 06:46 PM

UPDATE:
Development is going very well these days. Yesterday, I fixed an issue which caused the script to read the decrypted file too fast during the merging process, causing it to fail. This has been fixed by adding a 200 ms timeout after decryption and seems to work fine on my computer. (No BETA's were yet released to testers.)

Today, I can say that one of my most wanted additions is finally working. I've had lots of trouble with it before, but today I tried a different approach to do it, and with success. Today, I can say that Log Manager will be able to place images in a pop-up menu! :D The image explains all! :)

[Image: attachment.php?pid=847257]

This has been done using GDI+ to create a GDI+ Bitmap from an image file (in this case, GIF images) and then create a HBITMAP which I can use in the pop-up menu from the GDI+ Bitmap. I'm currently awaiting matty's response to allow me using his GDI+ global variables and initialize and shut down functions. If he agrees, I'll probably be releasing a new BETA to my testers very soon. :)

And, as requested by warmth, the tree view structure in the Browse window is a bit wider and compared to previous versions, it's the stretchable element now instead of the right panel text. This makes that if you enlarge the window, the tree view will follow, giving you more space to browse through the folders. ;)

(Oh yeah, that new icon in the functions bar is the new Log Merge button. Just in case you were wondering what it was. :P)
RE: [Release] Log Manager - Version 1.0.005 by warmth on 09-07-2007 at 07:57 PM

what more can I say... just beutiful... thanks for listen to me...

Note: I am kind of sad cause you didn't contact me... You must already have many tester... :(!!! I would be glad to help u... keep working...(Y)


RE: [Release] Log Manager - Version 1.0.005 by Matti on 09-08-2007 at 09:26 AM

quote:
Originally posted by warmth
what more can I say... just beutiful... thanks for listen to me...
Thanks! :D
quote:
Originally posted by warmth
Note: I am kind of sad cause you didn't contact me... You must already have many tester... :(!!! I would be glad to help u... keep working...(Y)
Well, actually I'm not the kind of developer who wants his BETA to be spread out by tons of testers. I have some testers who I know I can thrust, and I'm not in serious need for some new testers, although I really appreciate your help and suggestions for the script. Maybe, in a later stage, I'll add you. :)
RE: RE: [Release] Log Manager - Version 1.0.005 by warmth on 09-08-2007 at 09:57 PM

quote:
Originally posted by MattikeMaybe, in a later stage, I'll add you. :)
a hopeeeee:o)!!! jajajaja
RE: [Release] Log Manager - Version 1.0.005 by prashker on 09-09-2007 at 03:19 AM

oooh the pretty colours. I like pictures in buttons


RE: [Release] Log Manager - Version 1.1.008 by Matti on 09-15-2007 at 05:28 PM

Log Manager has been updated to version 1.1.008! Check the first post to find out more! :)


RE: [Release] Log Manager - Version 1.1.008 by Mizery_Made on 09-16-2007 at 02:57 PM

[Image: th_Huh.jpg]

That seems a little wrong, Lol.


RE: [Release] Log Manager - Version 1.1.008 by Matti on 09-16-2007 at 05:14 PM

quote:
Originally posted by Mizery_Made
[ Image ]

That seems a little wrong, Lol.
Ah, the beauty of copy-pasting. :P Already fixed on my side, will be implemented in the next version.
RE: [Release] Log Manager - Version 1.1.008 by tominic on 11-08-2007 at 05:44 PM

i LOVE the merge script

so damn useful lol


RE: [Release] Log Manager - Version 1.1.008 by Q8Bond007 on 12-12-2007 at 03:42 PM

Decrypting makes your CPU at very high load(core2 duo e6600@2.8ghz). the last time i tried to decrypt some big logs and my pc stopped working. i had to restart it manually. arround 20-25 Log Viewer.exe was runned

also is it possible to make it auto merge files with numbers like (2) (3)?
for example:
December 2007 (2) to December 2007
without having to un-tick many


RE: [Release] Log Manager - Version 1.1.008 by Matti on 12-12-2007 at 04:08 PM

Normally it shouldn't open so many decryption processes at once, but it should wait until the current one is finished. However, the way of determining this is really tricky because the script can't really determine if the decryption is done or not. I can also understand that decrypting can heat up your CPU, but that's because I don't actually own the control about the decrypting process itself. The script depends on Plus!' Log Viewer.exe, whereas other scripts use only JScript or homemade DLLs which the developer has made himself.

As for auto-merging, I understand that there's a huge request for scheduled tasks or automatic actions, but for the moment this is not an easy task. Plus!' scripting system has no specific function to let something happen at an exact moment (e.g. every day at 5 pm) and thus I'd have to use timers instead. But those can have serious complications, e.g. the script may not run at the time the task is planned. And also, I can't think of an easy way to get a GUI for all those possibilities so the user can define what should happen.

I recommend you to do the decryption in smaller parts instead of decrypting them all at once. Log Manager is out of development at the moment, as I'm busy with Countdown Live 2 at the moment. In fact, Log Manager doesn't need to be made with the Plus! Live scripting system, and maybe it would be better if it was a stand-alone application so it could use everything normal programs can. Unfortunately, I don't own the skills to write something in C++ or something. But if I would learn C++ one day, I may want to write a Log Manager which can really manage logs. :)


RE: [Release] Log Manager - Version 1.1.008 by nila on 01-02-2008 at 02:15 PM

Hiya,
I'm just trying this now and I'm trying to get it to merge some files together for me and it just repeatedly is hanging each time.

It instantly jumps up to 'Overall status: x% completed' (usually quite high like 75% or 65% or something) and then just sits there and doesn't change at all and just hangs :(

The status remains as 'waiting' for both files as well.
Another thing I've just noticed is that the original files I have selected to be merged are no longer there (luckily I was using a backup copy to test with or I'd have lost my files now!!!)

also wondering - are you having to manually parse the log files yourself to merge them or can log viewer.exe do it for you?

The only options I can see for Log viewer.exe are:

viewlog
encrypt
decrypt
changepwd


RE: [Release] Log Manager - Version 1.1.008 by Matti on 01-02-2008 at 02:53 PM

The merging process is handled by Log Manager itself. Basically, it reads the files, splits them up in their sessions and stores those sessions in an array. Then, the array is sorted by date and then Log Manager writes the new file.

I'm sorry that it's not working properly for you, but I'm afraid there's few I can do about this. The script fully depends on Log Viewer.exe and there's really nothing I can do to provide a better method. In fact, the script can't tell whether decryption is actually done, since I can't communicate with the process itself. Unfortunately, people want me to do big things, like scheduled tasks and such, but I'm afraid that would cause it all to hang even more, cause more trouble and, well, I have no idea how I should program that with a Plus! script. Yes, sure, why not program a DLL? Well, VS2005 fails here, so I can't even try to start on learning C++ or another serious language.

Anyway, back onto your problem. Maybe you could provide some more information?

  • How many files are you trying to merge?
  • Are those files encrypted?
  • How large (file size) are the files?
  • What are your computer specifications?

RE: [Release] Log Manager - Version 1.1.008 by nila on 01-02-2008 at 03:20 PM

I decided to try trouble shoot so just did it with two small files to test - same result.
They're not encrypted at all, just plain.
they're under 100kb each.

computer is 2gb RAM, c2d processor - pretty high spec basically - easily enough for something this basic.

How do you get log manager to merge files?
I downloaded the scripting manually and couldn't see anything about it there, where did you get the info for about it?

thanks :)


RE: [Release] Log Manager - Version 1.1.008 by Matti on 01-02-2008 at 03:41 PM

quote:
Originally posted by nila
I decided to try trouble shoot so just did it with two small files to test - same result.
They're not encrypted at all, just plain.
they're under 100kb each.

computer is 2gb RAM, c2d processor - pretty high spec basically - easily enough for something this basic.
That's very weird. I'm using the same specs (2 GB RAM - C2D) and merging 2 small HTML log files works flawlessly. You are sure that they are log files, uh? Because merging web pages won't work, I'm afraid. :P
quote:
Originally posted by nila
How do you get log manager to merge files?
I downloaded the scripting manually and couldn't see anything about it there, where did you get the info for about it?
The merging process is all in "_mergeProcess.js". It's a class which handles everything. I wrote it myself, and when you study the code, you'll see that it relies on file change detections for checking if one step is finished. I wish I could get Patchou to write some kind of manager himself, since he wrote the log file encryption thingy himself. :P At least, I guess that he could do a much better job with his C++ than I can with JScript.
RE: [Release] Log Manager - Version 1.1.008 by nila on 01-03-2008 at 12:55 PM

I've tried this with a bunch of files now and its failing with every single one of them.
The top status bar which shows complete says 'Copying Merged.html'

Bottom now says 'Overall status: 83.3% completed'

I've left it overnight even and no change.


RE: [Release] Log Manager - Version 1.1.008 by Matti on 01-03-2008 at 06:01 PM

That's interesting. This is actually the end phase of the process where it tries to copy the merged file, stored in a temporary location, to the final destination.

  • Does the destination file already exist? Normally, it should delete that file first, but we better check everything...
  • Could you check that, during the merging process, the following file is present:
    quote:
    XP: C:\Documents and Settings\UserName\Local Settings\Temp\Log Manager\Merged.html
    Vista: C:\Users\UserName\AppData\Local\Temp\Log Manager\Merged.html

RE: [Release] Log Manager - Version 1.1.008 by nila on 01-03-2008 at 09:49 PM

ok - went to 'Local Settings\temp' and tried it and it hung at the same spot and no 'Log Manager' folder appeared during the process.

I created the folder manually and the file appeared in it but again it hung at the same point.
The file in it was the merged file but it just stayed there and the output file never appeared.

Seems like its having some issues with the file system and making folders and files on it I'd say at a guess?
There should be no permission errors on the drive and i've never had any other programs have any problems  with it.


RE: [Release] Log Manager - Version 1.1.008 by Matti on 01-04-2008 at 09:08 AM

Yes, that looks like some sort of error with the files or the file system indeed. Quite odd, because the script was tested on XP and none of my testers reported problems with it.

I already found that the script doesn't check if the folder exists, as it uses the same folder for the encryption and decryption. A stupid mistake of me, yes, but because the same thing seems to happen when you create the folder yourself, the cause should lie somewhere else... unfortunately, I can't figure out where at the moment. :(

Well, since it hangs on the last step, I think you can try to copy the temporary file manually to your destination. My apologies for all this trouble, nila. Life of a script developer can be tough. :P


RE: [Release] Log Manager - Version 1.1.008 by kiljaeden on 07-04-2008 at 04:26 PM

Hi, I just dropped by to say I have the exact same problem as nila. I tried out some of the workarounds and it was helpful. This script would have been perfect if it doesn't hang at 83.3%. Still, using the workarounds, it's still very useful. Thanks for the script!

Cheers.


RE: [Release] Log Manager - Version 1.1.008 by kiljaeden on 07-04-2008 at 04:29 PM

I found out another thing: in the merged HTML file, any of the non-English characters such as &#971; and &#1171; don't appear correctly - instead it's just weird boxes or ??? in their places.

Edit: Ok those characters don't appear properly in this thread as well, but you get what I mean. :D


RE: [Release] Log Manager - Version 1.1.008 by djdannyp on 08-21-2008 at 10:58 AM

Small bug:  In the English language file there is still a dutch (?) phrase in there for the script menu.  "Logboeken samenvoegen" is included instead of "Merge Logs"

This can be easily fixed by editing English.xml, found in the "Languages" folder.

Also, the file doesn't appear to download as a PLSC, but it instead gets converted into a zip.

Maybe add it to the scripts database?


RE: [Release] Log Manager - Version 1.1.008 by Vilkku on 10-12-2008 at 08:14 AM

Hooray for old threads. Anyway, after having sorted my logs by month for ages, I am now converting them all to per-contact sorting. As you know, when you sort by month, the log files are all saved according to the e-mail of the contact, and when sorting by contact, the files are named according to month and year. With 200+ contacts and logs going back to 2006 (also got the old, pre-MP!L logs, more on that later), this is still a lengthy process, even using your merger. My suggestion/request/question is, would it be possible to make an automated "sort by month -> sort by e-mail" converter? If there is one already available, could someone point me at the right direction?

Also, I have tons of old log files (before MP!L was released, Plus! logged in .txt). Any chance those can be merged with the new Live logs?


RE: [Release] Log Manager - Version 1.1.008 by Matti on 10-12-2008 at 08:32 AM

quote:
Originally posted by Vilkku
Also, I have tons of old log files (before MP!L was released, Plus! logged in .txt). Any chance those can be merged with the new Live logs?
Theoretically, it could be possible, but it'd be very hard. In the old chat logs, long names are cut off which can cause a lot of trouble trying to detect which person wrote which message. There'd also be a problem when trying to convert the standard emoticon codes to images, as the Images folder in each log folder is filled by Plus! itself and you can't rely on having a certain image present in that folder because the file names (e.g. MsgPlus_Img1337.png) doesn't tell you the original code and/or the contact who sent it. And retrieving the smiley image is no option when you have logs dating from a few years ago.

As for your first suggestion... I understand you want a tool to convert a structure like this:
code:
August 2008
   - someone@hotmail.com
   - somebody@hotmail.com
July 2008
   - somebody@hotmail.com
to:
code:
someone@hotmail.com
   - August 2008
   - July 2008
somebody@hotmail.com
   - July 2008
and vice versa? That's a very good suggestion, but...

Unfortunately, I stopped working on this project a long time ago. This was because of the fact that the actual encryption/decryption process was coded in a crappy way which has already caused a lot of trouble to some users. The main problem is that there's no real way for me to be able to keep track of how far the encryption process has progressed, since it completely relies on a single tool delivered by Plus! (the MPTools.exe). Also, the fact that it's a Plus! Live script, it has to share its memory and CPU usage with Messenger and other scripts which makes it lag a lot.

It would be great if I could learn how to code real standalone programs in C++ or C# or whatever and make it complete with asynchronous calls and scheduled events, but I simply don't have the skills and equipment for that yet. Log Manager really doesn't have a great advantage being integrated in Messenger, so it'd really be awesome if I could pull this off as a "real" program. But don't get your hopes too high - it may still take a few years until that happens. As for the time being, I'll concentrate on simple Plus! Live scripting and web development... remember: I'm only 16! :P
RE: [Release] Log Manager - Version 1.1.008 by Vilkku on 10-12-2008 at 08:40 AM

I understand the limitations of the script, it was mainly a general question/suggestion :)


RE: [Release] Log Manager - Version 1.1.008 by CVonV on 11-19-2008 at 08:04 AM

is there a script for merging text log files?


RE: RE: [Release] Log Manager - Version 1.1.008 by djdannyp on 11-19-2008 at 09:15 AM

quote:
Originally posted by CVonV
is there a script for merging text log files?

Yes, this script does that
RE: [Release] Log Manager - Version 1.1.008 by Matti on 11-19-2008 at 12:31 PM

quote:
Originally posted by CVonV
is there a script for merging text log files?
If you mean log files saved as plain text (*.txt), then no, Log Manager can't do that. This is because merging plain text logs is as simple as pasting everything in one text file... You can do that very easily yourself!
RE: [Release] Log Manager - Version 1.1.008 by Niobe on 12-03-2008 at 10:06 PM

Anyone know if exist a similiar script or other software to merge log files...

Because this script doesn't work


I tried with

Windows XP Professional SP2
Windows Live Messenger 8.5
Messenger Plus! 4.70

And also with

Windows Vista Ultimate
Windows Live Messenger 9
Messenger Plus! 4.79

Doesn't matter the process dont finish


See the attached image

[Image: semttulozi9.th.jpg]:S


RE: [Release] Log Manager - Version 1.1.008- WARNING by richard20260 on 01-13-2009 at 12:25 AM

If it did what it was supposed to do it would be great, however it appears to be a malicious script as it destroys the contents of the chat logs leaving an empty merged file in ALL cases. BE WARNED!


RE: Merged Chat Logs by prashker on 01-13-2009 at 12:55 AM

quote:
Originally posted by richard20260
If it did what it was supposed to do it would be great, however it appears to be a malicious script as it destroys the contents of the chat logs leaving an empty merged file in ALL cases. BE WARNED!
lol, OORRRRRR you did something wrong (or it's not compatible, keep in mind the script is over a year and a while old :p)
RE: [Release] Log Manager - Version 1.1.008 by matty on 01-13-2009 at 03:31 AM

quote:
Originally posted by richard20260
If it did what it was supposed to do it would be great, however it appears to be a malicious script as it destroys the contents of the chat logs leaving an empty merged file in ALL cases. BE WARNED!
You have to be kidding me. Malicious... wow you got it all wrong buddy!
RE: [Release] Log Manager - Version 1.1.008 by platinummale on 02-11-2009 at 08:19 PM

Hi there

I can't seem to get this to work. (sorry i'm not very good with computers) I have downloaded the script and it has been imported to MSN live.  What do I need to do from here?


RE: [Release] Log Manager - Version 1.1.008 by Niobe on 02-17-2009 at 11:41 AM

quote:
You have to be kidding me. Malicious... wow you got it all wrong buddy!

No he don't kidding. There is no other name to that script.

quote:
lol, OORRRRRR you did something wrong (or it's not compatible, keep in mind the script is over a year and a while old :p)

You are wrong my dear. I try to use this with older version of Windows Live Messenger and Messenger Plus! Live e got the same error.

That script just destroys the contents of the chat logs leaving an empty merged file in ALL cases

I think that script should be deleted of database because is very dangerours.
RE: [Release] Log Manager - Version 1.1.008 by Felu on 03-07-2009 at 08:51 AM

Maaaaattttiiiiiiiiiii

Where are you? The merge feature gets stuck at 66.7% :(.


RE: [Release] Log Manager - Version 1.1.008 by Matti on 03-07-2009 at 10:23 AM

Alright, that's it. Enough about this. If you want me to help you, then you first will have to help me!

I'm planning to recreate Log Manager as a Visual C++ or C# application, which gives me the ability to work in multiple threads and integrate some kind of scheduling feature. The only problem: I have absolutely no experience with programming for the Windows environment in .NET languages. So basically, I need someone to teach me! :P

My most important questions in this project are as followed:

  • I need some way to keep track of the progress while "Log Viewer.exe" executes the command-line encryption process. Messenger Plus! Live seems to be able to detect this quite accurately while encrypting a log file to display its contents afterwards, so I need some way to get the same result.
  • I want to make the user interface share some elements of Windows Live Messenger 2009. I already wrote some code to get the wavy header background in the window using GDI+ (with doubled buffering drawing), but I think there has to be some better way to make custom GUIs.
Well yeah, if someone could help me with this? :)
RE: [Release] Log Manager - Version 1.1.008 by JimmyJazz on 03-25-2011 at 07:03 AM

When I try to merge my PLE files, they come out in a big paragraph of text, and it looks to be only 2 months that actually do merge out of all of them.  Opening the resulting .html file shows

T h i s  i s  a n  e x a m p l e

rather than anything in HTML.  It's like the decrypting doesn't work.  ANd I can use other scripts to decrypt it myself, but this program doesn't recognize plain text to merge it.

How did the rest of the people who posted here get it to work?  I realize it was some time ago, but the logs aren't new either.


RE: [Release] Log Manager - Version 1.1.008 by Matti on 03-25-2011 at 10:20 AM

First of all, this project is sort of discontinued. I'm not planning any updates in the near future. The main reason is that the way the script interacts with the Log Viewer executable is still unreliable and there's no easy way to make this better with a Plus! script.

I just tried to do a merge process and it still works more or less. I managed to merge three encrypted log files into one log file. It's not completely broken yet. :P

However, it is very possible that only two months are merged in the case that the script thinks that Log Viewer is done decrypting while it's not. This detection is done using a timer which checks the last modified time on the decrypted file to determine whether Log Viewer is still working on it or whether it's finished. If Log Viewer hasn't changed the file in a certain time interval, the script thinks that it's done and continues with the next file.

The only reliable way to detect this is by receiving the exit code from the Log Viewer process itself. However, this is not possible in a Plus! script as such asynchronous monitoring is not supported. That's why I started porting the script to C# where such functionality is available.

I'll try to find some time to polish that C# project and release it. It's just that I don't have much time... *-)



On another note, it appears that there's a small error in one of the script files. For the time being, I'll have to ask you to do this change manually though.
In _mergeProcess.js, find this line:
js code:
this.TempFolder = PathAppend(GetTempPath(), "Log Manager");
and add the following line beneath it:
js code:
this.TempFolder = PathAppend(GetTempPath(), "Log Manager");
>>>if(!IsFolder(this.TempFolder)) CreateFolder(this.TempFolder);<<<
It probably won't fix some files being skipped but at least the merge process will effectively be able to start. ;)
RE: [Release] Log Manager - Version 1.1.008 by JimmyJazz on 03-25-2011 at 01:57 PM

Thanks for the reply and update!

I just tried a merge of 3 months and it looks like there are 2 problems.  1.  It only used the first month.  2.  Something happens during the merge (doesn't happen with decrypt alone) to the first line, and there is no HTML formatting.  It shows in the examples below

Here's an example of the original PLE log:

code:
.--------------------------------------------------------------------.
| Session Start: Wednesday, March 12, 2008                           |
| Participants:                                                      |
|    B- ALL ABOOOORT!   *toot toot* (email1@hotmail.com)             |
|    ...e not to sell your perfumed secrets (email2@hotmail.com)     |
.--------------------------------------------------------------------.
[04:25:36 PM] I promise no: morning :)
[04:25:56 PM] B- ALL ABOOO: morning
[04:25:59 PM] B- ALL ABOOO: literally
[04:26:22 PM] I promise no: how u doin?
[04:26:47 PM] B- ALL ABOOO: i dunno i just woke up after like 13
              hours
[04:26:55 PM] I promise no: i just woke up too!


After merging, only the one month is shown and it looks like this in notepad
code:
.---------------.--------------------------------------------------------------------.
| Session Start: Wednesday, March 12, 2008                           |
| Participants:                                                      |
|    B- ALL ABOOOORT!   *toot toot* (email1@hotmail.com)             |
|    ...e not to sell your perfumed secrets (email2@hotmail.com)     |
.--------------------------------------------------------------------.
[04:25:36 PM] I promise no: morning :)
[04:25:56 PM] B- ALL ABOOO: morning
[04:25:59 PM] B- ALL ABOOO: literally
[04:26:22 PM] I promise no: how u doin?
[04:26:47 PM] B- ALL ABOOO: i dunno i just woke up after like 13
              hours
[04:26:55 PM] I promise no: i just woke up too!


The top line is different.  The headers after this one are identical to the original though.

Opening the original in wordpad is identical to notepad.  But this file produced from the merge operation (the code above) looks different in wordpad.  I can't even copy it into this window because it must have invisible characters in it, but this is how it appears by my typing it out:
code:
. - - - - - - - - - - - - - - . - - - - - - - - - - - - - - (continues)
|  S e s s i o n  S t a r t  (header continues)
[ 0 4 : 2 5 : 3 6  P M ]   I  p r o m i s e  n o :  m o r n i n g  : )



I hope that makes sense to you.

I don't know if it makes any difference, but my logs have almost the same modify date, because I encrypted them all using another tool found in these forums.
RE: [Release] Log Manager - Version 1.1.008 by Matti on 03-25-2011 at 02:32 PM

I see, you're working with log files in text format. This script only works with HTML formatted log files (encrypted or decrypted). Encrypting and decrypting will work just fine but merging works with the actual log contents and needs those contents to be HTML.

The problem is caused by the script seeing a PLE file and assuming that the content is HTML. It doesn't check whether the decrypted content is valid HTML. I understand that this should actually be checked by the script, I never actually tested it with text log files. I don't see why anyone would still want to use text logs when the HTML logs are so much better though. :P

(Those "invisible characters" are actually null characters as the script writes as Unicode. However since there's no byte flag or content type specified, Notepad and WordPad will open it as ANSI and show those null characters as spaces.)


RE: RE: [Release] Log Manager - Version 1.1.008 by JimmyJazz on 03-25-2011 at 02:44 PM

quote:
Originally posted by Matti
I don't see why anyone would still want to use text logs when the HTML logs are so much better though. :P


I totally agree!  But unfortunately years of my logs are in text.  Is there anything that can transform them to even basic HTML logs? 
RE: [Release] Log Manager - Version 1.1.008 by CookieRevised on 03-25-2011 at 03:36 PM

quote:
Originally posted by JimmyJazz
Is there anything that can transform them to even basic HTML logs?
No, not automatically. There are way to many variables and unknowns in regards to text logs to make something fully automated. A lot of examples of these unknowns and problems can be seen in this thread. But note that there are also other problems not yet described in that thread too. It is just a massive undertaking to write something which can convert text logs to html files in a reliable way and it will never be a fully automated process anyways (it would always require user interaction to answer some unknowns etc). And then I'm not even talking about language dependant stuff in those logs.
RE: [Release] Log Manager - Version 1.1.008 by JimmyJazz on 03-25-2011 at 04:54 PM

Well I guess my best bet then is to find a program to combine text files in a chosen order, so I can at least have them streamlined into 30 files rather than 700!

Thanks for the advice, both of you.


RE: [Release] Log Manager - Version 1.1.008 by hekxc on 04-07-2011 at 02:46 AM

Sorry for the trouble, but I've been having MSN Logging problems for years (multiple logs on multiple accounts as well as different formatting). If you can reply to my query it would be greatly appreciated. :)

Whenever I try to merge two encrypted logs together (with an unencrypted output), let's say 'email@hotmail.com.ple' and 'email@hotmail.com.ple (2)' I get an error message either at 50% or 66.7% that says:

   The process failed because an error occured.

   Error: Error while reading temporary file.
   Paramaters: C:Users\Chase\AppData\Local\Temp\Log
   Manager\email@hotmail.com.tmp

   Please try again.

I don't really know anything about scripting or coding but i tried creating a folder in Temp called Log Manager and that didn't work. Any suggestions?



Also, regarding the editing of the _mergeProcess.js script, where would one find this file? I can't seem to find it. :$

Thanks for your time.


RE: [Release] Log Manager - Version 1.1.008 by Matti on 04-07-2011 at 06:04 PM

As stated in a previous post, this project is discontinued. I'll try to help you with your problem, although I can't guarantee that it will be solved.

First of all, what are the exact names of those files? Are the names in the format:

code:
email@hotmail.com.ple
email@hotmail.com (2).ple
or
code:
email@hotmail.com.ple
email@hotmail.com.ple (2)
The second situation will most likely fail, since the script strips off the extension when building the temporary path for the decrypted log file. (I know, it's not the greatest idea but I'm not planning to update this script any more.)
Another possible problem would be that you are merging two files with the exact same name but in different. This will also lead to a naming conflict for the temporary file.

You could try to give all files a unique name and see if that fixes your problem. I understand that this is less than ideal but it'll have to do for now. I'll see if I can find some time to polish up the successor of this script... no promises though. :^)

You could also try to fix the _mergeProcess.js file yourself. You can find this file in:
code:
C:\Program Files\Yuna Software\Messenger Plus!\WLM-Scripts\Log Manager
Simply open that script file in any text editor and make the changes as shown in Matti's reply to [Release] Log Manager - Version 1.1.008. That should fix the temporary folder from not properly being created.