/fdk-go-tools

Additional tools for writing serverless functions with fnproject in Go

Primary LanguageGoGNU Lesser General Public License v2.1LGPL-2.1

fdktools

Package fdk-go-tools provides some helper functions for writing serverless functions for fnproject in Go.

Usage

func InitLogger

func InitLogger(logTag string) (fdklogger *log.Logger)

InitLogger will initialize a logger for use with fnproject on Oracle Cloud (OCI). It is configurable to write either to STDERR (as a default) or a syslog destination. For using a syslog destination, an URI in the format "protocol:://logerserver:port" needs to be provided via configuration variable FN_LOG_DESTINATION. Currently only tcp and udp are supported as protocols. An example for a valid destination URI is "tcp://logserver.example.com:12345".