static

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AppVersion ...
	AppVersion string = `v1.0.3
`
)
View Source
const (
	// DefaultConfiguration_yml ...
	DefaultConfiguration_yml string = `colorization: true
pattern: "${timestamp} ${level} <${thread}> ${logger}: ${message} {${others}} ${stacktrace}"
startup-line:
  color: FgGreen, OpBold
  contains: "Started Application in"
  print-format: "\n%s\n"

line-no:
  print: true
  color: FgGray

unknown-line:
  print: true
  color: FgBlue

prefix:
  print: true
  color: FgBlue

grok: # logstash GROK configuration, used to parse non-JSON log lines. DISABLED if ` + "`" + `uses` + "`" + ` is empty
  uses: # array of GROK pattern names to be used. Check files in ` + "`" + `library-dirs` + "`" + ` for available patterns
  matches-fields: # array of STANDARD field name by which a log line is considered to matches used GROK patterns
    - timestamp
  library-dirs: # array of library directory that has GROK pattern files
    - ~/.jog/grok_vjeantet  # Will touch it and put default patterns there if not exists. To reset it, run ` + "`" + `jog --reset-grok-library-dir` + "`" + `
    - ~/.jog/grok_extended
    - ~/.jog/grok_mine
    - ./.jog/grok_library # Ignore if not exists

fields:
  others:
    name:
      color: FgYellow
    separator:
      label: =
      color: FgDefault
    value:
      color: FgDefault
  level: # 'level' field is a hard-coded field used for level filter as well, so don't rename it
         # And, it must be an enum.
    print-format: "%-5.5s" # follows https://golang.org/pkg/fmt/
    alias: "level, @level, severity, @severity"
    case-sensitive: false
    enums:
      case-sensitive: false
      default: WARN
      DEBUG:
        alias: debug,20
        color: FgBlue,OpBold
      INFO:
        alias: info,30,log
        color: FgBlue,OpBold
      ERROR:
        alias: error,err,critical,50
        color: FgRed,OpBold
      WARN:
        alias: warn,warning,40
        color: FgYellow,OpBold
      TRACE:
        alias: trace,10
        color: FgGreen,OpBold
      FINE:
        alias: fine
        color: FgCyan,OpBold
      FATAL:
        alias: fatal,60
        color: FgRed,OpBold
  app:
    print: false
    alias: "name, @name, @app"
    case-sensitive: false
    color: FgDefault
  class:
    print: false
    alias: "classname, class-name, @class_name, @classname, @class-name, @class_name"
    case-sensitive: false
    color: FgDefault
    compress-prefix:
      enabled: true
      separators: ., /, \
      action: remove
  env:
    alias: "environment, @env, @environment"
    case-sensitive: false
    color: FgDefault
  file:
    alias: "src, source, filename, file-name, file_name, filepath,file-path, file_path, @src, @source, @file, @filename, @file-name, @file_name, @filepath, @file-path, @file_path"
    case-sensitive: false
    color: FgDefault
    compress-prefix:
      enabled: true
      separators: /, \
      action: remove
  host:
    print: false
    alias: "hostname, host-name, host_name, @host, @hostname, @host-name, @host_name"
    case-sensitive: false
    color: FgDefault
  line:
    alias: "lineno, line-no, line_no, linenum, line-num, line_num, linenumber, line-number, line_number, @lineno, @line-no, @line_no, @linenum, @line-num, @line_num, @linenumber, @line-number, @line_number"
    case-sensitive: false
    color: FgDefault
  logger:
    alias: "id, logger_name, logger-name, loggername, @id, @logger_name, @logger-name, @loggername, @logger"
    case-sensitive: false
    color: FgDefault, OpUnderscore
    compress-prefix:
      enabled: true
      separators: . , /
      white-list: com.wxcount
      action: remove-non-first-letter
  message:
    alias: "msg, @msg, @message"
    case-sensitive: false
    color: FgCyan
  method:
    alias: "methodname, method-name, method_name, func, funcname, func-name, func_name, function, functionname, function-name, function_name,  @method, @methodname, @method-name, @method_name, @func, @funcname, @func-name, @func_name, @function, @functionname, @function-name, @function_name"
    case-sensitive: false
    color: FgDefault
  pid:
    print: false
    alias: "process, process-id, processid, process_id, @pid, @process, @process-id, @processid, @process_id"
    case-sensitive: false
    color: FgDefault
  request:
    alias: "req, @req, @request"
    case-sensitive: false
    color: FgDefault
  response:
    alias: "res, resp, @res, @resp, @response"
    case-sensitive: false
    color: FgDefault
  stacktrace:
    alias: "err, error, stack, stack_trace, stack-trace, @stack, @stack_trace, @stack-trace, @stacktrace, error.stack_trace, @error.stack_trace"
    case-sensitive: false
    color: FgRed
    print-format: "\nStack trace: \n%s"
  thread:
    alias: "thread_name, thread-name, threadname, @thread, @thread_name, @thread-name, @threadname"
    case-sensitive: false
    color: FgDefault
  timestamp: # 'timestamp' field is a hard-coded field used for time range filter as well, so don't rename it
    alias: "time, date, datetime, date-time, date_time, @time, @timestamp, @date, @datetime, @date-time, @date_time"
    case-sensitive: false
    color: FgDefault
    #type: auto
    #time-format: auto # 'auto' means jog will try best to automatically figure out the timestamp format which is done by github.com/araddon/dateparse.
                       # If explicitly specified, must present 2006-1-2 3:04pm.
                       #
                       # Perhaps ambigous (see https://github.com/qiangyt/jog/issues/49), but this time-format as well as
                       # timezone attribute are not for print/conversion, instead, they're only used to parse --after filter
                       # value, --before filter value, and timestamp field value. And parsing only occurs if --after/--before
                       # filter value is specified.
                       # timestamp field is always outputted without any conversion, even these 2 attributes are specified
    #timezone: UTC # see golang time.LoadLocation(timezone)
  user:
    alias: "usr, username, user-name, user_name, @usr, @username, @user-name, @user_name, @user"
    case-sensitive: false
    color: FgDefault
  version:
    alias: "ver, @ver, @version"
    case-sensitive: false
    color: FgDefault


`
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL