Comments (5)
I think something like Logging.info()
is more acceptable than overwriting the Base.
from logging.jl.
From the documentation: "By default, Logging.info masks Base.info. However, if Base.info is called before using Logging, info will always refer to the Base version."
Does this help?
from logging.jl.
I think that adds confusion. I would like to import Logging into my package OnlineStats.jl, but I don't think I can add a dependency for which I have to warn users about overwriting Base methods.
from logging.jl.
What about using different names like nfo
and wrn
(or something better)?
from logging.jl.
I think something like
Logging.info()
is more acceptable than overwriting the Base.
I wish that the package name were shorter, but I generally agree. I'll put forth a pull request which stops exporting all functions, and solicit feedback.
@tkelman, any feedback on perhaps changing the name of this package to Log.jl
, so that the logging functions could then be called as
Log.info(...)
Log.warn(...)
Log.error(...)
etc.? Do you think that would be acceptable, or is it taking too much liberty with the name? (I guess that would conflict with the same name being used in Base...)
from logging.jl.
Related Issues (20)
- Using capitalized function names HOT 3
- milliseconds HOT 2
- Julia .4 Deprecated Base Classes HOT 5
- Add Julia .4 + Nightly to Travis.yml
- default root logger output results in a `TTY(invalid status, ...)` on 0.4 HOT 2
- Causes Segmentation fault: 11 HOT 4
- test_hierarchy tests need more coverage
- WARNING: Method definition info(Any...) in module Base at util.jl:334 overwritten... HOT 2
- SystemError: flush: Bad file descriptor on Travis but not on local machine HOT 5
- Make output date format configurable HOT 2
- Using Logging to send log to a notification service
- Add pid in Logging msg for multithread HOT 5
- Seg fault (v0.4 and v0.5) HOT 8
- On Master: WARNING: both Logging and Base export "log"; uses of it in module Main must be qualified HOT 1
- Set the number of decimal places
- join forces? HOT 1
- test for Julia 0.6 failed
- @Logging.configure throws error in Julia v0.6 HOT 3
- Info about upcoming removal of packages in the General registry
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 logging.jl.