Giter VIP home page Giter VIP logo

che-lib's People

Contributors

andrienkoaleksandr avatar benoitf avatar eclipsewebmaster avatar evidolob avatar mkuznyetsov avatar mmorhun avatar mshaposhnik avatar riuvshin avatar skabashnyuk avatar skryzhny avatar sunix avatar tsmaeder avatar vinokurig avatar vparfonov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

che-lib's Issues

Consider to enable LogstashEncoder by default

I would like to collect opinions about changing encoder for file logs(Important note: human readable Console log will remain the same)
from

        <encoder>
            <charset>utf-8</charset>
            <pattern>%-41(%date[%.15thread]) %-45([%-5level] [%.30logger{30} %L]) - %msg%n</pattern>
        </encoder>

to

 <encoder class="net.logstash.logback.encoder.LogstashEncoder" />

Example not formatted

{"@timestamp":"2017-11-19T20:37:00.893+00:00","@version":1,"message":"Workspace ID: workspace5pudf9crvcnrbrks","logger_name":"org.eclipse.che.
api.project.server.WorkspaceHolder","thread_name":"localhost-startStop-1","level":"INFO","level_value":20000}

Example formatted:

{
  "@timestamp": "2017-11-19T20:37:00.893+00:00",
  "@version": 1,
  "message": "Workspace ID: workspace5pudf9crvcnrbrks",
  "logger_name": "org.eclipse.che. api.project.server.WorkspaceHolder",
  "thread_name": "localhost-startStop-1",
  "level": "INFO",
  "level_value": 20000
}

Proc:

  1. It has fixed format, will be easy to parse with different tools like jq
  2. timestamp,thread_name , logger_name are not truncated .
  3. Massage takes a single line. In some cases, if log contains multiline comment it's very hard to parse it with tools. With json format, it won't be a problem.
  4. We may consider in future using Logstash as a default log collection backend for a multi-user mode.

Cons:

  1. Larger file. I expect ~ 30%
  2. Expected cons from 1) it will be a bit slower.

replace orion patches with forked code

I've now tried to build che-lib in Brew and in che.openshift.io and in both places, the build fails to apply patches, but all the other projects build OK.

Che Plugin :: Orion-14.0 :: Editor ................. FAILURE [ 1.612 s]

Reproduction Steps:

. Start che.openshift.io
. Import this project - https://github.com/eclipse/che-lib - from master branch
. In console:

cd che-lib; mvn clean install -DskipTests -fn

Result:

compilation fails:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-patch-plugin:1.1.1:apply (bugfix-patches) on project che-orion-editor: Patch command failed with exit code 127 for fix_linked_mode.diff. Please see console and debug output for more information. -> [Help 1]

Che version:

6.9.0-SNAPSHOT

OS and version:

Linux workspace9nt5vd6igtvs72x2.dockerimage 3.10.0-862.3.2.el7.x86_64 #1 SMP Tue May 15 18:22:15 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

Docker version:

(docker is not installed in my che.openshift.io workspace console)

Che cli.log output:

No such file or directory

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.