streamparse icon indicating copy to clipboard operation
streamparse copied to clipboard

no logging at all

Open mbande opened this issue 8 years ago • 5 comments

i've configured logging as this in config.json:

            "log": {
                "path": "/var/log/storm",
                "file": "pystorm_{topology_name}_{component_name}_{task_id}_{pid}.log",
                "max_bytes": 1000000,
                "backup_count": 10,
                "level": "info"
            },

the log files are created for each component/task/pid. however almost every bolt has statements like self.logger.info('blah blah') in their process method, there is no log entry in files after many tuple processing. what is wrong here?

mbande avatar Nov 06 '16 13:11 mbande

Try to use self.logger.warn() or self.logger.error() to see if the problem is with "log_level" configuration or somewhere else.

Darkless012 avatar Nov 07 '16 12:11 Darkless012

already tried with self.logger.warn() with no effect

mbande avatar Nov 07 '16 13:11 mbande

even sparse run does not print log messages in stdout nor in log files is it normal?

mbande avatar Nov 13 '16 09:11 mbande

@mbande No, that's very strange. What versions of streamparse and pystorm are you using?

dan-blanchard avatar Nov 15 '16 15:11 dan-blanchard

streamparse==3.2.0 pystorm==3.0.3

mbande avatar Nov 16 '16 15:11 mbande