
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@byu-oit/express-logger
Advanced tools
Default express logging middleware to match BYU app dev logging standards
Default express logging middleware to match CES Application Development logging standards.
npm i @byu-oit/express-logger
import { LoggerMiddleware } from '@byu-oit/express-logger'
const app = Express()
app.use(LoggerMiddleware())
// ... add routes to express app
const { LoggerMiddleware } = require('@byu-oit/express-logger')
const app = Express()
app.use(LoggerMiddleware())
Any requests to the express server will then write logs that look like:
{
"level":"info",
"time":1617128842026,
"req":{
"id":"Root=1-abcde",
"method":"GET",
"url":"/persons/123456789",
"remoteAddress":"::1"
},"res":{
"statusCode":200
},
"responseTime":168,
"message":"request completed"
}
This middleware will attach the Pino logger to the request object, so if needed you can access the logger like:
app.use(LoggerMiddleware())
app.get('/foo', (req, res) => {
req.log.debug('Inside the /foo route')
res.send('hello world')
})
Any pinoHttp options can be overridden, but for compliance with our logging standards, we recommend sticking to the defaults provided in this package.
app.use(LoggerMiddleware({
level: 'trace'
}))
Note: If you provide your own logger please use the @byu-oit/logger to ensure you follow the logging standards.
import DefaultLogger from '@byu-oit/logger'
const myLogger = DefaultLogger()
app.use(LoggerMiddleware({
logger: myLogger
}))
FAQs
Default express logging middleware to match BYU app dev logging standards
The npm package @byu-oit/express-logger receives a total of 127 weekly downloads. As such, @byu-oit/express-logger popularity was classified as not popular.
We found that @byu-oit/express-logger demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.