Skip to content

codefresh-io/cf-container-logger

Repository files navigation

cf-container-logger

required environment variables:

# FIREBASE_AUTH_URL - the main firebase ref to authenticate on initialization
# FIREBASE_SECRET - the secret key to write to the firebase auth url and all future derived urls
# LOGGER_ID - logger id. if a container will include this id in its label, we will log it
# LOG_TO_CONSOLE - by default, logging to console is disabled and only logging to a file is enabled. set this env to log to console to
# LISTEN_ON_EXISTING - by default, if not provided, will only listen for new containers. this will enable listening on existing containers

Container labels

# logging strategies
    # io.codefresh.loggerStrategy
        # logs - will get all container logs from the beginning
        # attach - will get all container logs from the point where attach was enabled. usefull for getting all interactive i/o