Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » SystemLog for Ultimate++
SystemLog for Ultimate++ [message #9083] Mon, 16 April 2007 23:29 Go to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
I have created an interface for Ultimate++ to access syslog on Posix and EventLogger (Event Viewer) on Windows.

have a look at the news

the use is pretty simple:
SystemLog sl("NameOfMyApplication");
sl.Notice("Just wanted to let you know that ...");
sl.Warning("This is the last warning!");
sl.Error("division by zero");


there are more different leves but the three above are supported by both Systems (syslog has some more levels).

Bas
as always: suggestions and questions are welcome.
Re: SystemLog for Ultimate++ [message #9107 is a reply to message #9083] Tue, 17 April 2007 20:35 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
fallingdutch wrote on Mon, 16 April 2007 17:29

I have created an interface for Ultimate++ to access syslog on Posix and EventLogger (Event Viewer) on Windows.

have a look at the news

the use is pretty simple:
SystemLog sl("NameOfMyApplication");
sl.Notice("Just wanted to let you know that ...");
sl.Warning("This is the last warning!");
sl.Error("division by zero");


there are more different leves but the three above are supported by both Systems (syslog has some more levels).

Bas
as always: suggestions and questions are welcome.


Do you expect the application to create more than single SystemLog object?

BTW, where have you put the code? Smile

Mirek
Re: SystemLog for Ultimate++ [message #9118 is a reply to message #9107] Wed, 18 April 2007 10:34 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
luzr wrote on Tue, 17 April 2007 20:35


Do you expect the application to create more than single SystemLog object?


Did not yet think about it wether it makes sense or not to have more than one SystemLog. If you want to devide the informations you could create more then one.

luzr wrote on Tue, 17 April 2007 20:35


BTW, where have you put the code? Smile


on the downloads on fallingdutch.de

Bas
Re: SystemLog for Ultimate++ [message #9122 is a reply to message #9118] Wed, 18 April 2007 11:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Why is that .DLL so big? It should contain just one message definition AFAIK?!

Idea: Perhaps, if there is a way how to get it smaller, maybe you could make it part of SystemLog (static byte sMC[] = {...).

When user would use SystemLog for the first time, it would get installed somewhere automatically.

Mirek
Re: SystemLog for Ultimate++ [message #9131 is a reply to message #9122] Wed, 18 April 2007 13:33 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
luzr wrote on Wed, 18 April 2007 11:28

Why is that .DLL so big? It should contain just one message definition AFAIK?!


used MFC, now without MFC 44kb are left.

luzr wrote on Wed, 18 April 2007 11:28


Idea: Perhaps, if there is a way how to get it smaller, maybe you could make it part of SystemLog (static byte sMC[] = {...).

When user would use SystemLog for the first time, it would get installed somewhere automatically.

might be a good idea.

Bas
Re: SystemLog for Ultimate++ [message #9154 is a reply to message #9131] Thu, 19 April 2007 10:33 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
There is no need for a dll anymore, everything is compiled into the executeable now.

please use the current SystemLog at downloads on fallingdutch.de

Bas
Re: SystemLog for Ultimate++ [message #9401 is a reply to message #9154] Sat, 05 May 2007 09:06 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
small changes has been done:
  • bugfix on Linux (not displaying the name in the log)
  • beeing able to Initialize SystemLog as often as you want
  • now able to switch Debug logging on and off during runtime


currunt version on downloads at my HP

have fun using it,
Bas
Re: SystemLog for Ultimate++ [message #13487 is a reply to message #9401] Thu, 10 January 2008 19:27 Go to previous messageGo to next message
captainc is currently offline  captainc
Messages: 278
Registered: December 2006
Location: New Jersey, USA
Experienced Member
First, thanks for this!

Second, just wanted to let you know that when I use the Info() method, in the Application event viewer in Windows XP, it tells me "The description for Event ID ( 1 ) in Source ( My App Name ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. ... The following information is part of the event: My Message Here!."

So it outputted my message, but it was looking for some sort of description for the event.

Re: SystemLog for Ultimate++ [message #24493 is a reply to message #13487] Wed, 20 January 2010 14:43 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Tell me please if there is a convenient way to have messages divided into lines:
for (int i=0; i<10; ++i) SysLog.Info(FormatInt(i));

should give:
Quote:

INFO: 1
INFO: 2
...


but not this:
Quote:

INFO 123456789

I'm afraid this kind of feature doesn't help much.
Re: SystemLog for Ultimate++ [message #24527 is a reply to message #24493] Fri, 22 January 2010 15:55 Go to previous messageGo to next message
Mindtraveller is currently offline  Mindtraveller
Messages: 917
Registered: August 2007
Location: Russia, Moscow rgn.
Experienced Contributor

Also it would be great to have "safe" mode, where SysLog flushes after each log message.
Now, if app is crashed, it can't see anything in log possibly because of need to flush after message was posted.

[Updated on: Fri, 22 January 2010 15:59]

Report message to a moderator

Re: SystemLog for Ultimate++ [message #26906 is a reply to message #9083] Tue, 08 June 2010 08:28 Go to previous message
sevenjay is currently offline  sevenjay
Messages: 30
Registered: October 2008
Location: Taiwan
Member
Great!
But does it can also enable UPP log in release mode?
Or I just modify "SystemLog.cpp", and change "LOG(msg);" to "RLOG(msg);" ?

Thanks.
Previous Topic: EditImage - editing image as String (for storing graphical information in DataBase)
Next Topic: Docking: based on TabBar extension: OrderTitles
Goto Forum:
  


Current Time: Thu Mar 28 20:54:16 CET 2024

Total time taken to generate the page: 0.01121 seconds