Comments (2)
Ahhhhh, I miss understood that, my apologies. Also, thank you for the fast response. Cheers!
from flog.
Hello,
In flog, the sleep function does not actually sleep every log generation, but only sets the interval of generation time between logs to be generated.
So, if you run flog -t gz -o log.gz -n 3000 -s 10
, it will immediately generate a log file which has following logs for example.
...
68.140.112.91 - Stark2041 377 [2018-08-29T10:05:23+09:00] "DELETE /syndicate/interactive" 406 20676
50.11.46.218 - Rau3340 627 [2018-08-29T10:05:33+09:00] "DELETE /integrate/infomediaries" 100 3541
71.151.12.150 - Crist7675 658 [2018-08-29T10:05:43+09:00] "PUT /aggregate/back-end" 501 12070
196.226.112.172 - Pouros6637 175 [2018-08-29T10:05:53+09:00] "PUT /monetize/transparent/end-to-end/evolve" 304 2162
71.214.233.106 - Williamson7465 738 [2018-08-29T10:06:03+09:00] "POST /functionalities/e-enable/exploit" 400 21112
120.205.58.46 - Cronin1702 188 [2018-08-29T10:06:13+09:00] "POST /strategize/schemas/magnetic/intuitive" 406 8595
...
Each generation times in above logs are:
...
2018-08-29T10:05:23+09:00
2018-08-29T10:05:33+09:00
2018-08-29T10:05:43+09:00
2018-08-29T10:05:53+09:00
...
Yes, It does not update the log file every 10 seconds, but just creates a log file immediately.
from flog.
Related Issues (20)
- Print stacktraces HOT 3
- Log Forwarding HOT 5
- When using loop, sleep is not upheld. HOT 1
- parameter -d and -s support time string? HOT 2
- Unable to install using homebrew HOT 2
- sleep flag does not seem to work HOT 1
- output path is not working HOT 6
- Feature Request: Output logs to network connection HOT 3
- Undifined: gofakeit.StatusCode error on install HOT 6
- Unable to use Flog on OpenShift
- When logging to file flog doesn't stop after n lines
- Ask; Why don't build directly, not copying go module file? HOT 1
- Ability to configure line size in bytes
- Support octet-counting
- Issue: Can't install it on mac Cannot tap mingrammer/flog: invalid syntax in tap! HOT 2
- generated log time skew
- [Question] Can I generate logs that are from past e.g. six months ago
- Custom format log
- just does not work HOT 1
- RFC5424 not always compliant HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flog.