Support Questions
Find answers, ask questions, and share your expertise

Standard loggin while using Nipyapi

New Contributor

Hey Guys -

 

Currently I'm trying to log into a file using standard logging library in python while using nipyapi library (https://github.com/Chaffelson/nipyapi/). Can somebody help if you're able to figure on how to do this?

 

Version I'm currently on:

  • Nipyapi version: 0.14.3
  • NiFi version: 1.9.0
  • Python version: 3.6.3
  • Operating System: RHEL 7.7

Code to replicate this:

import nipyapi

import logging

logging.basicConfig(filename="/tmp/execution.log",level=logging.INFO,format='%(asctime)s:%(levelname)s:%(message)s')

logging.info('hello')

 

Thanks in advance

 

@dchaffey @MattWho @jtaras 

0 REPLIES 0