GithubHelp home page GithubHelp logo

knu2xs / arcpy-logging Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 52 KB

Python logging with the option to include an explicit ArcPy messaging handler.

Home Page: https://knu2xs.github.io/arcpy-logging/

License: Apache License 2.0

Makefile 18.51% CSS 0.29% Python 66.96% Batchfile 14.24%

arcpy-logging's Introduction

ArcPy-Logging

Integrating ArcPy messaging into standard Python logging.

For more information and samples, pleasae take a look at the ArcPy-Logging Documentation.

BumpVersion Cliff Notes for Myself

Bump2Version is preconfigured based on hints from this article on Medium.

If you want to...

  • apply a patch, bumpversion patch
  • update version with no breaking changes (minor version update), bumpversion minor
  • update version with breaking changes (major version update), bumpversion major
  • create a release (tagged in vesrion control - Git), bumpversion --tag release

Project based on the Cookiecutter Spatal Data Science project template. This template, in turn, is simply an extension and light modification of the cookiecutter data science project template. #cookiecutterdatascience

arcpy-logging's People

Contributors

knu2xs avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

ioalexei

arcpy-logging's Issues

quick demo

I think this is the tool I'm looking for, but I have not been successful at running it. The following code does not result in any errors, but it also writes an empty log file. The log file is even empty when I intentionally cause the arcpy function (fishnet in this case) to have an error. Any help would be appreciated. Note: I'm running this using ArcGIS Server on Linux.

import arcpy_logger as al
al.get_logger(log_level='DEBUG', logfile_pth=al.Path('/home/path/to/workspace/logger.log'))

import arcpy
arcpy.management.CreateFishnet("/home/path/to/workspace/fishnet.shp", 
                               "1 1", "1 9", "1", "1", "9", "9", "#", "NO_LABELS")

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.