LogoLogo
AI HubCommunityWebsite
  • Start Here
  • AI Hub
    • Overview
    • Quickstart
    • Spaces
    • Device Farm
    • Browser Inference
    • Model Zoo
      • Hailo
      • Intel
      • MemryX
      • BrainChip
      • Google
      • DeGirum
      • Rockchip
    • View and Create Model Zoos
    • Compiler
    • PySDK Integration
  • PySDK
    • Overview
    • Quickstart
    • Installation
    • Runtimes and Drivers
      • Hailo
      • OpenVINO
      • MemryX
      • BrainChip
      • Rockchip
      • ONNX
    • PySDK User Guide
      • Core Concepts
      • Organizing Models
      • Setting Up an AI Server
      • Loading an AI Model
      • Running AI Model Inference
      • Model JSON Structure
      • Command Line Interface
      • API Reference Guide
        • PySDK Package
        • Model Module
        • Zoo Manager Module
        • Postprocessor Module
        • AI Server Module
        • Miscellaneous Modules
      • Older PySDK User Guides
        • PySDK 0.16.1
        • PySDK 0.16.0
        • PySDK 0.15.2
        • PySDK 0.15.1
        • PySDK 0.15.0
        • PySDK 0.14.3
        • PySDK 0.14.2
        • PySDK 0.14.1
        • PySDK 0.14.0
        • PySDK 0.13.4
        • PySDK 0.13.3
        • PySDK 0.13.2
        • PySDK 0.13.1
        • PySDK 0.13.0
    • Release Notes
      • Retired Versions
    • EULA
  • DeGirum Tools
    • Overview
      • Streams
        • Streams Base
        • Streams Gizmos
      • Compound Models
      • Analyzers
        • Clip Saver
        • Event Detector
        • Line Count
        • Notifier
        • Object Selector
        • Object Tracker
        • Zone Count
      • Inference Support
      • Support Modules
        • Audio Support
        • Model Evaluation Support
        • Math Support
        • Object Storage Support
        • UI Support
        • Video Support
      • Environment Variables
  • DeGirumJS
    • Overview
    • Get Started
    • Understanding Results
    • Release Notes
    • API Reference Guides
      • DeGirumJS 0.1.3
      • DeGirumJS 0.1.2
      • DeGirumJS 0.1.1
      • DeGirumJS 0.1.0
      • DeGirumJS 0.0.9
      • DeGirumJS 0.0.8
      • DeGirumJS 0.0.7
      • DeGirumJS 0.0.6
      • DeGirumJS 0.0.5
      • DeGirumJS 0.0.4
      • DeGirumJS 0.0.3
      • DeGirumJS 0.0.2
      • DeGirumJS 0.0.1
  • Orca
    • Overview
    • Benchmarks
    • Unboxing and Installation
    • M.2 Setup
    • USB Setup
    • Thermal Management
    • Tools
  • Resources
    • External Links
Powered by GitBook

Get Started

  • AI Hub Quickstart
  • PySDK Quickstart
  • PySDK in Colab

Resources

  • AI Hub
  • Community
  • DeGirum Website

Social

  • LinkedIn
  • YouTube

Legal

  • PySDK EULA
  • Terms of Service
  • Privacy Policy

© 2025 DeGirum Corp.

On this page
  • degirum.log.DGLog
  • print(message)
  • set_verbose_state(state)
  • degirum.log.log_wrap(f=None, *, log_level=logging.DEBUG)
  • degirum.exceptions.DegirumException
  • degirum.exceptions.validate_color_tuple(color)

Was this helpful?

  1. PySDK
  2. PySDK User Guide
  3. API Reference Guide

Miscellaneous Modules

PreviousAI Server ModuleNextOlder PySDK User Guides

Last updated 6 days ago

Was this helpful?

degirum.log.DGLog

Console logging class with programmable verbosity.

print(message)

degirum.log.DGLog.print(message)

staticmethod

Print message to log according to current verbosity level.

Parameters:

Name
Type
Description
Default

message

str

Message string to print.

required

set_verbose_state(state)

degirum.log.DGLog.set_verbose_state(state)

staticmethod

Set log verbosity state.

Parameters:

Name
Type
Description
Default

state

bool

If True, then log prints messages to console, otherwise no messages printed.

required

degirum.log.log_wrap(f=None, *, log_level=logging.DEBUG)

Decorator to log function entry and exit.

Parameters:

Name
Type
Description
Default

f

Callable

Function to log.

None

log_level

int

Logging level of the log entries.

DEBUG

degirum.exceptions.DegirumException

Bases: Exception

Base type for all DeGirum exceptions.

degirum.exceptions.validate_color_tuple(color)

Validate if color has acceptable representation.

Parameters:

Name
Type
Description
Default

color

Any

Color object to validate.

required

Raises:

Type
Description

if color is not a three-element tuple and each element is integer number.

Returns:

Type
Description

tuple

color sequence converted to tuple.

DegirumException

This API Reference is based on PySDK 0.16.2.