Coder Social home page Coder Social logo

cschlosser / glog-rs Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 73 KB

Port of the C++ glog logging functionality as backend into the standard Rust logging frontend

Home Page: https://crates.io/crates/glog

License: BSD 3-Clause "New" or "Revised" License

Rust 100.00%
crate glog log logging rust

glog-rs's People

Contributors

cschlosser avatar wathiede avatar

Watchers

 avatar

Forkers

wathiede

glog-rs's Issues

Generate convenient symlinks to latest log files.

The C++ library has a helper SetLogSymlink and the Go version automatically creates symlinks for each log file.

So, for example, on my system I see files like this from a Go program using glog:

$ ls -l /tmp/nomadnet.INFO         
lrwxrwxrwx 1 wathiede users 59 Dec 26 21:16 /tmp/nomadnet.INFO -> nomadnet.nixos-07.wathiede.log.INFO.20221226-211600.4192921

That points to the logs of the most recent invocations of my glog enabled programs.

Would you be receptive of a pull request that mimicked the Go behavior? If not, how about a helper to create it manually like the C++ version?

The automatic behavior is really nice because the symlinks don't get created until a program has logged at that level, for example, the .ERROR symlink won't even exist if the program hasn't yet logged at the error level.

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.