Skip to content

FluentRecordFormatter fails, when given a string, which contains only numbers. #70

@redlolgeerf

Description

@redlolgeerf

Simple script to illustrate:

import os
import logging
from fluent import handler


FLUENT_HOST = os.getenv('FLUENT_HOST', 'fluentd-logger')
FLUENT_PORT = int(os.getenv('FLUENT_PORT', 24224))
FLUENT_TAG = os.getenv('FLUENT_TAG', 'docker.docker-tag')

if __name__ == "__main__":
    logging.basicConfig(level=logging.INFO)
    logger = logging.getLogger('fluent.test')
    h = handler.FluentHandler(FLUENT_TAG, host=FLUENT_HOST, port=FLUENT_PORT, verbose=True)
    formatter = handler.FluentRecordFormatter()
    h.setFormatter(formatter)
    logger.addHandler(h)

    logger.info('1')

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions