- 
                Notifications
    
You must be signed in to change notification settings  - Fork 0
 
Home
        Rusky edited this page Feb 25, 2025 
        ·
        3 revisions
      
    Concise Logging is an advanced yet easy-to-use logging library available for both Node.js and Python.
Install via npm:
npm install concise-logging
Install via pip:
pip install concise-logging
const ConciseLogger = require('concise-logging');
const logger = new ConciseLogger({ time_format: 24, unix: true });
logger.trace("SYSTEM", "INIT", "This is a trace message.");
logger.debug("DATABASE", "Debugging database connection.");
logger.info("SERVER", "Server started successfully.");
logger.warn("MEMORY", "Memory usage is high!");
logger.error("API", "TIMEOUT", "Failed to fetch data from API.");
logger.fatal("CRASH", "Application crashed unexpectedly.");from ConciseLogging import ConciseLogger
logger = ConciseLogger(time_format=24, unix=True)
logger.trace("SYSTEM", "INIT", message="This is a trace message.")
logger.debug("DATABASE", message="Debugging database connection.")
logger.info("SERVER", message="Server started successfully.")
logger.warn("MEMORY", message="Memory usage is high!")
logger.error("API", "TIMEOUT", message="Failed to fetch data from API.")
logger.fatal("CRASH", message="Application crashed unexpectedly.")[25/02/2025 14:35:22 1677332122] [TRACE] [SYSTEM] [INIT] This is a trace message.
[25/02/2025 14:35:23 1677332123] [DEBUG] [DATABASE] Debugging database connection.
[25/02/2025 14:35:24 1677332124] [INFO] [SERVER] Server started successfully.
[25/02/2025 14:35:25 1677332125] [WARN] [MEMORY] Memory usage is high!
[25/02/2025 14:35:26 1677332126] [ERROR] [API] [TIMEOUT] Failed to fetch data from API.
[25/02/2025 14:35:27 1677332127] [FATAL] [CRASH] Application crashed unexpectedly.
| Parameter | Description | Default | 
|---|---|---|
time_format | 
Time display format (12 or 24 hours) | 
24 | 
unix | 
Append Unix timestamp (True or False) | 
False | 
© 2025 RuskyDev. All rights reserved.