All Projects → octplane → Ansible_stdout_compact_logger

octplane / Ansible_stdout_compact_logger

Licence: mit
Ansible Stdout Compact Logger

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Ansible stdout compact logger

Graylog Ansible Role
Ansible role which installs and configures Graylog
Stars: ✭ 173 (+22.7%)
Mutual labels:  ansible, logging
Xsrv
[mirror] Install and manage self-hosted services/applications, on your own server(s) - ansible collection and utilities
Stars: ✭ 89 (-36.88%)
Mutual labels:  ansible, logging
Ansible Role Logstash
Ansible Role - Logstash
Stars: ✭ 136 (-3.55%)
Mutual labels:  ansible, logging
Structured Log
A JavaScript implementation of Serilog's hybrid text/structured logging
Stars: ✭ 133 (-5.67%)
Mutual labels:  logging
Requirements
PowerShell framework for declaratively defining and idempotently imposing system configurations
Stars: ✭ 134 (-4.96%)
Mutual labels:  logging
Tensor
Tensor - Comprehensive web-based automation framework and Centralized infrastructure management platform
Stars: ✭ 136 (-3.55%)
Mutual labels:  ansible
Redfish Ansible Module
Ansible modules for Out-Of-Band Controllers using Redfish APIs
Stars: ✭ 139 (-1.42%)
Mutual labels:  ansible
Documentation
Stars: ✭ 133 (-5.67%)
Mutual labels:  logging
Rogcat
A `adb logcat` wrapper
Stars: ✭ 137 (-2.84%)
Mutual labels:  logging
Elk Hole
elasticsearch, logstash and kibana configuration for pi-hole visualiziation
Stars: ✭ 136 (-3.55%)
Mutual labels:  logging
Network
An ansible role to configure networking
Stars: ✭ 134 (-4.96%)
Mutual labels:  ansible
Logdna Agent
LogDNA Agent streams from log files to your LogDNA account. Works with Linux, Windows, and macOS Servers
Stars: ✭ 134 (-4.96%)
Mutual labels:  logging
Monolog Cascade
Configure multiple loggers and handlers in the blink of an eye
Stars: ✭ 136 (-3.55%)
Mutual labels:  logging
Hippo
💨A well crafted go packages that help you build robust, reliable, maintainable microservices.
Stars: ✭ 134 (-4.96%)
Mutual labels:  logging
Logback Chinese Manual
logback 中文手册/文档。
Stars: ✭ 138 (-2.13%)
Mutual labels:  logging
Ansible Role Dotfiles
Ansible Role - Easy and flexible dotfile installation.
Stars: ✭ 133 (-5.67%)
Mutual labels:  ansible
Quicklogger
Library for logging on files, console, memory, email, rest, eventlog, syslog, slack, telegram, redis, logstash, elasticsearch, influxdb, graylog, Sentry, Twilio, ide debug messages and throw events for Delphi/Firemonkey/freepascal/.NET (Windows/Linux/OSX/IOS/Android).
Stars: ✭ 137 (-2.84%)
Mutual labels:  logging
Cygwin Portable Installer
Windows batch file to perform unattended installations of a portable Cygwin environment.
Stars: ✭ 135 (-4.26%)
Mutual labels:  ansible
Simple Go Server
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
Stars: ✭ 136 (-3.55%)
Mutual labels:  logging
Ololog
A better console.log for the log-driven debugging junkies
Stars: ✭ 141 (+0%)
Mutual labels:  logging

Ansible Stdout Compact Logger

Installation

  • put somewhere on your disk
  • add callback_plugins settings in your [defaults] settings in your ansible configuration
  • change stdout_callback to anstomlog

cf ansible.cfg.

Features

  • [x] one-line display
  • [x] pylint compatible (almost...)
  • [x] displays tasks content in a nice way
  • [x] including UTF-8 strings
  • [x] indents structs, displays empty arrays, strings
  • [x] puts fields on top when available ['stdout', 'rc', 'stderr', 'start', 'end', 'msg']
  • [x] removes some fields when present [, 'stdout_lines', '_ansible_verbose_always', '_ansible_verbose_override'] to avoid too much clutter
  • [x] reverts to standard logger when more than vv verbosity
  • [x] supports no_log attribute in Task
  • [x] supports _ansible_verbose_always and _ansible_verbose_override
  • [x] supports multiple items in task (#1)
  • [x] multi host support
  • [x] correct duration computation
  • [x] Display duration in minutes when tasks last for more than 1 minute
  • [x] diff display support
  • [x] displays stdout and stderr nicely even when they contain \n
  • [x] displays handlers calls
  • [x] Python 2/3 compatible
  • [ ] better line colouring
  • [ ] more test around curious errors

Without anstomlog

Stdout Display without anstomlog

With anstomlog

Stdout Display with multiline outputs

Test the logger

  • clone this repository
ansible-playbook test-1.yml
  • to run the tests, call python callbacks/anstomlog.py

License

MIT, see LICENSE file.

Tips and tricks

  • Issue with non-ascii or utf-8 chars? Have a look at #4

Contributors

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].