Comments (9)
Thanks.
I'll mark this as a good first issue and hopefully somebody can get around to looking at it soon.
We use morgan middleware for the logging, which is documented here:
https://github.com/expressjs/morgan
to give you the date and unformatted version like you are asking for, one would need to usesomething like:
if (!env.silent) {
app.use(morgan(':date[iso] :method :url :status :res[content-length] - :response-time ms'));
}
from azurite.
I will start implementing this change in this week
from azurite.
Maybe, we could have an environment variable to optionally switch log coloring off
from azurite.
Many thanks for your suggestion.
What exactly are you looking to get out of the logging / how are you using it?
This will help me define some requirements and scope to improve it.
Logging is turned off with the --silent switch.
Ascii greeting is in lib/core/cli.js
logging is controlled by 'morgan' in AzuriteBlob.js, AzuriteQueue.js, AzuriteTable.js
like this:
const app = express();
if (!env.silent) {
app.use(morgan('dev'));
}
from azurite.
@edwin-huber Thanks for the hint :)
I've mixed 2 issues in one (sorry for that)
- I'd like to have a way to turn off log coloring via (for example) special env variable. So, when opening logs in ordinary text editor instead of
�[0mGET /account/customer?restype=container&comp=list �[32m200 �[0m19.399 ms - 255�[0m
I would see
GET /account/customer?restype=container&comp=list 32m19.399 ms
Usually, we forward our logs to logstash, where this coloring not needed as well :)
- In each log entry instead of a relative time from container start would be very nice to have absolute timestamp. Otherwise, it's really tricky to match log entries in different log files
from azurite.
I will look into the logging
from azurite.
Was there any resolution to this issue?
Is there a way to turn off logging via an environmental variable, so we can set that in our docker/docker-compose files?
from azurite.
Logging has been re-implemented since this issue was opened.
If there are still specific feature requests around logging, please let us know.
from azurite.
@edwin-huber 👋🏻 Hi!
Logging has been re-implemented since this issue was opened.
are there any details about this? as in, what was actually re-implemented (on a high level)?
For example: can logging be turned off via an env-var, now?
EDIT: I'm guessing i might be answering my own question now .. but the README was the place with this info is now explaining this?
https://github.com/Azure/Azurite#debug-log-configuration
Is this the main change(s) to logging?
from azurite.
Related Issues (20)
- Azurite does not support AzCopy
- Server failed to authenticate the request.Make sure the value of the Authorization header is formed correctly including the signature HOT 5
- Response have metadata always when using List Containers API HOT 4
- Blob - UndeleteAsync - APINotImplemented HOT 3
- Running Azurite with custom port using docker compose HOT 4
- Table Api Query on Int64 (long) column returning extra results HOT 1
- Expect Azurite to fail when inserting doubles greater than MAX_VALUE but succeeds instead HOT 2
- Azurite alway return 400 when use sasUrl generate by Azurite HOT 1
- 3.30.0 - StartCopyFromUriAsync - 500 Error HOT 7
- stageBlock API does not return Content-MD5 HOT 1
- [FeatureRequest] VsCode Command for checking if azurite blob service is running or start service only if service is not running HOT 1
- TableClient.CreateQueryFilter(predicate) treating long data type filter as string type. HOT 2
- 403 error when trying to use `UserDelegationKey` HOT 4
- Copy Blob From URL (Sync) does not support `x-ms-copy-source-tag-option` HOT 1
- SQL Server 2022 Polybase with Azurite - file in use?
- VS Code "azurite.blobHost" config doesn't seem to work HOT 3
- Blob Tag Support HOT 2
- Upload From Url API is not implement yet? HOT 3
- Is there a web portal to check the received objects? HOT 2
- Azurite cannot handle encoded blob names HOT 5
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 azurite.