Giter Site home page Giter Site logo

sfcc-log-src-anal's Introduction

SFCC Log & Source Files Analysis

Repo contains currently only one bash script (should run in Windows in git bash shell) to extract log entries specific to a session or customer number.

USAGE: bash scripts/get_sorted_logs_for_customer_n_date.sh <Logs-root-dir> any:<string>|sess:<Session-ID> <Date>
  1. scripts/get_sorted_logs_for_customer_n_date.sh expects it to be run from the root of this folder.
  2. Date has to be specified as one of the input params, since it avoids searching all files and there could be 1000s of them.

Example script usages:

  1. scripts/get_sorted_logs_for_customer_n_date.sh any:74D958E9-D682-49AB-BF7E-3F1943EA53BC 20220126
  2. scripts/get_sorted_logs_for_customer_n_date.sh sess:ZIk5xwdgdR 20220220
  3. scripts/get_sorted_logs_for_customer_n_date.sh "any: some other string with spaces" 20220215

Notes

  1. Customer number based search for session works only if there are records with customer number in header.

TODOs

  • Allow any string to be searched in the log record header to get session ID
  • If the session log records spills-over to the next date (from the input date), they have to be included.
  • Create a separate script to check for new log errors since the last code version.
    • This will be useful in getting a catalog of existing errors.
    • By comparing with existing errors, we can check if new errors are introduced in latest software release.
    • One can also know if any of the older errors are fixed in latest software release.
  • How can we build it as a extension to VS-Code to be used by developers?

sfcc-log-src-anal's People

Contributors

appanp avatar

Watchers

 avatar

Forkers

vkscorpio3

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.