X

Developer Partner Community

Sending function logs to Papertrail by Peter Jausovec

Juergen Kress
PaaS & Middleware Partner Adoption

image

Logging is one of the things that’s extremely important to do well, especially in the (micro)services and functions world where you have to track what’s happening across hundreds of services and functions.

In this post, I’ll briefly look at how to collect logs from your Fn functions and send them to an external log aggregator (in our case, this will be Papertrail).

Prerequisites

· Fn CLI

· Fn Server (you can use fn start command to bring up a local server)

Create a Simple Go Function

Start by creating a new function with the Fn CLI (fn init --runtime go myfunc). I have added two log statements — hello and goodbye — to the function as shown below:

Boilerplate Fn function with two logging statements added

Let’s deploy and call this function like this: Read the complete article here.

 

Developer Partner Community

For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.

clip_image003 Blog clip_image005 Twitter clip_image004 LinkedIn image[7][2][2][2] Facebook image Meetups

Technorati Tags: PaaS,Cloud,Middleware Update,WebLogic, WebLogic Community,Oracle,OPN,Jürgen Kress

Be the first to comment

Comments ( 0 )
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.