Information: Forum is in read-only mode
For details and other support options see https://www.adiscon.com/news/support-forum-set-to-read-only-mode/

First time use - error

Support, Questions and Discussions on ActiveLogger

Moderator: alorbach

Google Ads


First time use - error

Postby Guest » Sat Feb 05, 2005 9:31 pm

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?
Guest
 

Postby mmeckelein » Mon Feb 07, 2005 9:39 am

Hello,

please modify your code as follow:
Code: Select all
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
mmeckelein
Adiscon Support
 
Posts: 176
Joined: Wed Mar 12, 2003 12:07 pm

Google Ads



Return to ActiveLogger

Who is online

Users browsing this forum: No registered users and 0 guests

cron