Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
CAPI LOG Problem
Mike_Oliver_(INMUser1_(Delete)_2518941)
I allocate a CAPI LOG in my module's ospace Startup script as follows:$CsaloadLog = CAPI.AllocLog( File.StartupDir() + 'logs' + File.Separator() + 'csaload.log' )In my scripts I make a call to .csalog() script feature as follows:.csalog("ERROR:", err )The csalog() script feature looks like:function void csalog(Dynamic a, \ dynamic b = undefined, \ dynamic c = undefined, \ dynamic d = undefined, \ dynamic e = undefined, \ dynamic f = undefined, \ dynamic g = undefined) String message = Str.Format( '%1 %2 %3 %4 %5 %6 %7 %8', Date.Tick(), a, b, c, d, e, f, g ) if IsDefined( $CsaloadLog ) && CAPI.Log( $CsaloadLog, message ) != 0 echo("CsaloadLog failure:", message) end echo(" Debug Display:", message)end It works fine on Windows but not on Unix....Whazzup wif dat?
Find more posts tagged with
Comments
There are no comments yet