Skip to main content

call negar in your python source code and log to a file ...

Project description



what is negar

call negar in your python source code and log to a file ...


example


description

  • text

      # write 'text' to log file
      text = 'negar' 
    
  • save

      # write log to 'negar-log.txt'
      save = 'negar-log.txt' 
    
  • size

      # set 'size' for log file 
      size = 2
    

usage

  • method one

      # good
      import negar
      name = 'SYS113'
      negar.log('name value is '+str(name)+' ...')
    
  • method two

      # excellent
      from negar import log
      name = 'SYS113'
      log(text = 'name value is '+str(name)+' ...', save = 'negar.txt', size = 3)
    

tips

  • log file default size is 2 ...
  • log file size range is 1 ... 5 number (maximum is 5)
  • maximum size of python file name is 15 character ...
  • default log file name is log.txt ...
  • previously defined log file size can'not be resized!

copyright

copyright SYS113 - 2019.


license

GPL V3.0 license , please see license.txt file.


donate

  • for iranian users   :    meli bank     -   6037 9975 7621 6759
  • for global users   :  BTC wallet id  -   149JgUmFqG6MvFg79Ldrvdk2bN35ByhMuw

contact me


last world

hope this is negar useful to you and enjoy it.


negar logo ❤️ mohamad moradiyani


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

negar-0.1.0.tar.gz (20.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page