AdisconForum Forum Index AdisconForum
Support and Discussions
 
 FAQFAQ   SearchSearch    MemberlistMemberlist    UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
First time use - error

 
Post new topic   Reply to topic    AdisconForum Forum Index -> ActiveLogger
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sat Feb 05, 2005 8:31 pm    Post subject: First time use - error Reply with quote

Downloaded and installed ActiveLogger v1.2.0.4 (not from this site as the download seems to be broken).

Tried the following:

set oActiveLogger = CreateObject("Adiscon.ActiveLogger")
if IsObject(oActiveLogger) then
call oActiveLogger.LogToSyslog("My Message to be logged")
end if

and got an error:

Microsoft VBScript runtime error '800a01fb'

An exception occurred: 'LogToSyslog'

The IsObject test passed and I could see the object in VInterdev watch.

Do I need to do something else apart from install?
Back to top
mmeckelein
Adiscon Support


Joined: 12 Mar 2003
Posts: 82

PostPosted: Mon Feb 07, 2005 8:39 am    Post subject: Reply with quote

Hello,

please modify your code as follow:
Code:

set oActiveLogger = CreateObject("Adiscon.ActiveLogger")
if IsObject(oActiveLogger) then
   oActiveLogger.SyslogServer = "127.0.0.1" ' IP or server name
   oActiveLogger.SyslogPort = "514"
   oActiveLogger.SyslogFacility = "16"
   oActiveLogger.SyslogPriority = "6"
   oActiveLogger.SyslogProtocol = "0"
   oActiveLogger.LogToSyslog("My Message to be logged")
end if


This should work.

Best regards,
Michael Meckelein
Adiscon
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AdisconForum Forum Index -> ActiveLogger All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Topic Links: syslog
Powered by phpBB © 2001, 2005 phpBB Group