I'm told the easiest way now is to use a PerformFunction method with
@Log
We're not sure of the log object has been moved over from pyfme yet,
and pyfme may not work as I thought.
Hope this helps
Regards
Mark
Mark Ireland | Senior Product Specialist
Safe Software Inc.
Suite 2017, 7445-132nd Street, Surrey, BC, CANADA
T 604.501.9985 | F 604.501.9965
http://www.safe.com/support | Twitter @FMEDoctors |
http://www.fmepedia.com
On Jun 4, 4:38 pm, Mark Ireland <
mark.irel...@safe...> wrote:
> I guess that's a lesson to me to always check the date on these
> articles.
> Sorry, I'll find out an answer and let you know (though the pyfme
> thing should still work)
>
> Mark
>
> Mark Ireland | Senior Product Specialist
> Safe Software Inc.
> Suite 2017, 7445-132nd Street, Surrey, BC, CANADA
> T 604.501.9985 | F 604.501.9965
http://www.safe.com/support| Twitter @FMEDoctors |
http://www.fmepedia.com
>
> On Jun 4, 4:27 pm, Drew <
drewhutchin...@gmai...> wrote:
>
>
>
>
>
>
>
> > i thought pyfme had been deprecated by fmeobjects for python?
>
> > On Tuesday, June 5, 2012 3:19:30 AM UTC+10, Mark Ireland wrote:
>
> > > Hi Drew,
> > > There's an article on FMEpedia about logging with Python.
> > > Check out:
> > >
http://fmepedia.safe.com/articles/Error_Unexpected_Behavior/Logging-w...
>
> > > Basically you can use the Python print command to output to the log
> > > window, but to write to the file you need to use a logger object, such
> > > as:
>
> > > myLoggerObject = pyfme.FMELogfile())
> > > myLoggerObject.log("Something happened that I want to log")
>
> > > Hope this helps
>
> > > Mark
>
> > > Mark Ireland | Senior Product Specialist
> > > Safe Software Inc.
> > > Suite 2017, 7445-132nd Street, Surrey, BC, CANADA
> > > T 604.501.9985 | F 604.501.9965
> > >
http://www.safe.com/support|Twitter @FMEDoctors |
> > >
http://www.fmepedia.com
>
> > > On Jun 3, 11:42 pm, Drew <
drewhutchin...@gmai...> wrote:
> > > > This works in the TCL startup script:
>
> > > > FME_LogMessage fme_inform "Hello"
>
> > > > How do I get it to work in a python startup script?? (I am running some
> > > > ArcGIS arcpy functions as well so want to do it in python).
>
> > > > import fmeobjects
>
> > > > FME_LogMessage fme_inform "Hello"
>
> > > > this doesn't work. excuse my apparent stupidity...
--
Get all the FME resources you need at
http://www.FMEpedia.com
Sign up to attend an FME World Tour event at
http://www.safe.com/wt2012
You received this message because you are subscribed to the Google Groups "FME Talk" group.
To post to this group, send email to
fmetalk@goog...
To unsubscribe from this group, send email to
fmetalk-unsubscribe@goog...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.