LogoLogo
Official SiteAPI Reference
stable/3.0
stable/3.0
  • Cement Developer Guide
  • Release Information
    • What's New!
    • Upgrading
    • ChangeLog
    • Deprecations
  • Getting Started
    • Installation
    • Developer Tools
    • Framework Overview
    • Beginner Tutorial
      • Part 1: Creating Your First Project
      • Part 2: Adding Features
      • Part 3: Extending a Project
      • Part 4: Making Everything Legit
  • Core Foundation
    • Interfaces and Handlers
    • Hooks
    • Configuration Settings
    • Arguments
    • Logging
    • Controllers
    • Output Rendering
    • Caching
    • Mail Messaging
    • Framework Extensions
    • Application Plugins
    • Templating
  • Utilities
    • Filesystem
    • Shell
    • Miscellaneous
  • Extensions
    • Alarm
    • Argparse
    • Colorlog
    • ConfigParser
    • Daemon
    • Dummy
    • Generate
    • Jinja2
    • Json
    • Logging
    • Memcached
    • Mustache
    • Plugin
    • Print
    • Redis
    • Scrub
    • SMTP
    • Tabulate
    • Yaml
    • Watchdog
  • Additional Topics
    • Extending The App Object
    • Unit Testing
    • Cleanup
    • Signal Handling
    • Pipenv
    • Autocomplete
    • Profiling with cProfile
    • Debugging with VSCode
  • Environment Variables
  • Terminology
  • Contributing
  • Privacy Policy
Powered by GitBook
On this page
  • Cement Environment Variables
  • CEMENT_LOG
  • CEMENT_FRAMEWORK_LOGGING
  • Overriding App Configuration

Environment Variables

PreviousDebugging with VSCodeNextTerminology

Last updated 2 years ago

Cement Environment Variables

CEMENT_LOG

Parsed by the core framework, and extensions early on in runtime (before App is fully loaded). Triggers low-level framework logging, and toggles App.Meta.framework_logging.

Values:

  • 0

  • 1

Usage:

export CEMENT_LOG=1

This variable was introduced in Cement v3.0.8, and deprecates the previous setting .

CEMENT_FRAMEWORK_LOGGING

Deprecated in 3.0.8 in favor of (same usage).

Overriding App Configuration

Out of the box, Cement supports overriding application configuration settings by environment variables.

Configuration:

myapp:
  foo: bar

The above configuration would be overridden by the $MYAPP_FOO environment variable.

export MYAPP_FOO=not-bar
CEMENT_LOG
CEMENT_FRAMEWORK_LOGGING